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