/[RomCheater]/trunk/RomCheater.Logging/logger.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/logger.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.Logging/logger.cs	2014/09/15 21:35:40	827
+++ trunk/RomCheater.Logging/logger.cs	2014/09/15 21:36:20	828
@@ -33,6 +33,7 @@
 
 
     #region loggerflags
+    //[Obsolete("logging is being replaced by Enterprise.Logging.gLog")]
     internal class loggerflagsbase<TValue>
         where TValue : IConvertible
     {
@@ -179,6 +180,7 @@
         public TValue Value { get { return CurrentValue.Value; } }
     }
     //[Flags]
+    //[Obsolete("logging is being replaced by Enterprise.Logging.gLog")]
     internal class loggerflags : loggerflagsbase<ushort>
     {
         protected loggerflags() : base() { }
@@ -195,7 +197,8 @@
     }
     #endregion
 
-    #region public static class logger
+    #region public static class logger   
+    [Obsolete("logging is being replaced by Enterprise.Logging.gLog")]
     internal static class logger
     {
         private static string GetLoggingClass()
@@ -369,6 +372,7 @@
     #endregion
 
     #region internal static class Logger
+    [Obsolete("logging is being replaced by Enterprise.Logging.gLog")]
     internal static class xlogger
     {
         private static logwriter lh;
@@ -425,6 +429,7 @@
     #endregion
 
     #region internal class LogHelper : ILogger
+    [Obsolete("logging is being replaced by Enterprise.Logging.gLog")]
     internal class logwriter //: ILogger
     {
         private LogWriter writer;
@@ -446,29 +451,29 @@
         }
         private void WriteToLog(string format, bool newline, params object[] args)
         {
-            TextWriter tw = TextWriter.Synchronized(writer.Log);
-            if (writer != null)
-            {
-                if (newline)
-                {
-                    if (args.Length == 0)
-                    {
-                        tw.WriteLine(format.Replace("{", "{{").Replace("}", "}}"), args);
-                        return;
-                    }
-                    tw.WriteLine(format, args);
-                }
-                else
-                {
-                    if (args.Length == 0)
-                    {
-                        tw.Write(format.Replace("{", "{{").Replace("}", "}}"), args);
-                        return;
-                    }
-                    tw.Write(format, args);
-                }
-            }
-            tw.Flush();
+            //TextWriter tw = TextWriter.Synchronized(writer.Log);
+            //if (writer != null)
+            //{
+            //    if (newline)
+            //    {
+            //        if (args.Length == 0)
+            //        {
+            //            tw.WriteLine(format.Replace("{", "{{").Replace("}", "}}"), args);
+            //            return;
+            //        }
+            //        tw.WriteLine(format, args);
+            //    }
+            //    else
+            //    {
+            //        if (args.Length == 0)
+            //        {
+            //            tw.Write(format.Replace("{", "{{").Replace("}", "}}"), args);
+            //            return;
+            //        }
+            //        tw.Write(format, args);
+            //    }
+            //}
+            //tw.Flush();
         }
         #endregion
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22