Пример #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);
 }