Merge pull request #3800 from madewokherd/mingwbuild
[mono.git] / mcs / class / System / ReferenceSources / Logging.cs
index b5b773e28c4f186888e9a03b710e7524d4c66c23..8eb5e066d02487b08f300b15d1d6b1a7ccee2ad7 100644 (file)
@@ -1,21 +1,23 @@
-#if !MONO_FEATURE_NEW_TLS
 using System.Diagnostics;
 
 namespace System.Net {
-       class Logging {
-               internal static bool On {
+       static class Logging
+       {
+               internal static readonly bool On = false;
+
+               internal static TraceSource Web {
                        get {
-                               return false;
+                               return null;
                        }
                }
 
-               internal static TraceSource Web {
+               internal static TraceSource HttpListener {
                        get {
                                return null;
                        }
                }
 
-               internal static TraceSource HttpListener {
+               internal static TraceSource Sockets {
                        get {
                                return null;
                        }
@@ -29,6 +31,10 @@ namespace System.Net {
                internal static void Enter(TraceSource traceSource, string msg) {
                }
 
+               [Conditional ("TRACE")]
+               internal static void Enter(TraceSource traceSource, string msg, string parameters) {
+               }
+
                [Conditional ("TRACE")]
                internal static void Exception(TraceSource traceSource, object obj, string method, Exception e) {
                }
@@ -41,6 +47,10 @@ namespace System.Net {
                internal static void Exit(TraceSource traceSource, string msg) {
                }
 
+               [Conditional ("TRACE")]
+               internal static void Exit(TraceSource traceSource, string msg, string parameters) {
+               }
+
                [Conditional ("TRACE")]
                internal static void PrintInfo(TraceSource traceSource, object obj, string method, string msg) {
                }
@@ -75,4 +85,3 @@ namespace System.Net {
 
 #endif
 }
-#endif