/[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

revision 82 by william, Wed May 9 17:48:05 2012 UTC revision 95 by william, Wed May 9 22:37:17 2012 UTC
# Line 56  namespace RomCheater.Logging Line 56  namespace RomCheater.Logging
56              public static void Write(string format, params object[] args) { if (logging_flags.HasFlag(loggerflags.ERROR)) { xlogger.Write(CreateNewFormat(format), args); } }              public static void Write(string format, params object[] args) { if (logging_flags.HasFlag(loggerflags.ERROR)) { xlogger.Write(CreateNewFormat(format), args); } }
57              public static void WriteLine(string format, params object[] args) { if (logging_flags.HasFlag(loggerflags.ERROR)) { xlogger.WriteLine(CreateNewFormat(format), args); } }              public static void WriteLine(string format, params object[] args) { if (logging_flags.HasFlag(loggerflags.ERROR)) { xlogger.WriteLine(CreateNewFormat(format), args); } }
58          }          }
59            #region Force logging
60            public static class ForceLog
61            {
62                public static class Info
63                {
64                    private static string CreateNewFormat(string format) { return "    " + CreateTimeStamp() + "(INFO) " + format; }
65                    public static void Write(string format, params object[] args) { xlogger.Write(CreateNewFormat(format), args); }
66                    public static void WriteLine(string format, params object[] args) { xlogger.WriteLine(CreateNewFormat(format), args); }
67                }
68                public static class Debug
69                {
70                    private static string CreateNewFormat(string format) { return "    " + CreateTimeStamp() + "(DEBUG) " + format; }
71                    public static void Write(string format, params object[] args) { xlogger.Write(CreateNewFormat(format), args); }
72                    public static void WriteLine(string format, params object[] args) { xlogger.WriteLine(CreateNewFormat(format), args); }
73                }
74                public static class Error
75                {
76                    private static string CreateNewFormat(string format) { return "    " + CreateTimeStamp() + "(ERROR) " + format; }
77                    public static void Write(string format, params object[] args) { xlogger.Write(CreateNewFormat(format), args); }
78                    public static void WriteLine(string format, params object[] args) { xlogger.WriteLine(CreateNewFormat(format), args); }
79                }
80            }
81            #endregion
82          #endregion          #endregion
83    
84      }      }

Legend:
Removed from v.82  
changed lines
  Added in v.95

  ViewVC Help
Powered by ViewVC 1.1.22