예제 #1
0
 public static void Log <T>(this IJasilyLoggerObject <T> obj,
                            JasilyLogger.LoggerMode mode,
                            string message,
                            JasilyLogger logger = null,
                            [CallerMemberName] string member = "",
                            [CallerLineNumber] int line      = 0)
 {
     (logger ?? JasilyLogger.Current).WriteLine <T>(mode, message, member, line);
 }
예제 #2
0
 static JasilyLogger()
 {
     Current = new JasilyLogger();
     Current.WriteLine <JasilyLogger>(LoggerMode.Track, String.Format("logger system start on {0}", DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss:mmm")));
 }