예제 #1
0
 internal static void Error(this ILogger logger, ErrorCode logCode, string message, Exception exception = null)
 {
     logger.LogError(LoggingUtils.CreateEventId(logCode), exception, message);
 }
예제 #2
0
 internal static void Debug(this ILogger logger, ErrorCode logCode, string format, params object[] args)
 {
     logger.LogDebug(LoggingUtils.CreateEventId(logCode), format, args);
 }
예제 #3
0
 internal static void Info(this ILogger logger, ErrorCode logCode, string message)
 {
     logger.LogInformation(LoggingUtils.CreateEventId(logCode), message);
 }
예제 #4
0
 internal static void Trace(this ILogger logger, ErrorCode logCode, string message)
 {
     logger.LogTrace(LoggingUtils.CreateEventId(logCode), message);
 }
예제 #5
0
 public static void Warn(this ILogger logger, ErrorCode logCode, string message, Exception exception = null)
 {
     logger.LogWarning(LoggingUtils.CreateEventId(logCode), exception, message);
 }
예제 #6
0
 public static void Warn(this ILogger logger, ErrorCode logCode, string format, params object[] args)
 {
     logger.LogWarning(LoggingUtils.CreateEventId(logCode), format, args);
 }
예제 #7
0
 public static void Debug(this ILogger logger, ErrorCode logCode, string message)
 {
     logger.LogDebug(LoggingUtils.CreateEventId(logCode), message);
 }