2 // System.Web.TraceContext
\r
5 // Patrik Torstensson (Patrik.Torstensson@labs2.com)
\r
9 namespace System.Web {
\r
10 public sealed class TraceContext {
\r
11 private HttpContext _Context;
\r
12 private bool _Enabled;
\r
13 private TraceMode _Mode;
\r
15 public TraceContext(HttpContext Context) {
\r
20 public bool IsEnabled {
\r
30 public TraceMode TraceMode {
\r
40 public void Warn(string msg) {
\r
41 Write(String.Empty, msg, null, true);
\r
44 public void Warn(string category, string msg) {
\r
45 Write(category, msg, null, true);
\r
48 public void Warn(string category, string msg, Exception error) {
\r
49 Write(category, msg, error, true);
\r
52 public void Write(string msg) {
\r
53 Write(String.Empty, msg, null, true);
\r
56 public void Write(string category, string msg) {
\r
57 Write(category, msg, null, true);
\r
60 public void Write(string category, string msg, Exception error) {
\r
61 Write(category, msg, error, true);
\r
64 [MonoTODO("Save the data into a web dataset directly...")]
\r
65 public void Write(string category, string msg, Exception error, bool Warning) {
\r
66 throw new NotImplementedException();
\r