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); }
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"))); }