Example #1
0
 public static void AddWarnLog(this string log, Type logger, params object[] args) =>
 CommonLoggingHelper.UseLogger(logger, x => x.LogWarning(log, args));
Example #2
0
 public static void AddFatalLog(this string log, Type logger, params object[] args) =>
 CommonLoggingHelper.UseLogger(logger, x => x.LogCritical(log, args));
Example #3
0
 public static void AddInfoLog(this string log, Type logger, params object[] args) =>
 CommonLoggingHelper.UseLogger(logger, x => x.LogInformation(log, args));
Example #4
0
 public static void AddErrorLog(this string log, string logger, params object[] args) =>
 CommonLoggingHelper.UseLogger(logger, x => x.LogError(log, args));
Example #5
0
 public static void AddLog(this Exception e, Type logger, params object[] args) =>
 CommonLoggingHelper.UseLogger(logger, x => x.LogError(e, e.Message, args));
Example #6
0
 public static void UseLogger <T>(Action <ILogger> func) =>
 CommonLoggingHelper.UseLogger(typeof(T).FullName, func);
Example #7
0
 public static void UseLogger(Type tp, Action <ILogger> func) =>
 CommonLoggingHelper.UseLogger(tp.FullName, func);