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