@@ -9,7 +9,7 @@ internal static partial class LoggerExtensions
99 [ LoggerMessage (
1010 EventId = LoggingEventIdConstants . BackgroundService . Started ,
1111 Level = LogLevel . Information ,
12- Message = "Started worker {serviceName }. Worker will run with {repeatIntervalSeconds } seconds interval" ,
12+ Message = "Started worker {ServiceName }. Worker will run with {RepeatIntervalSeconds } seconds interval" ,
1313 SkipEnabledCheck = false ) ]
1414 internal static partial void LogBackgroundServiceStarted (
1515 this ILogger logger ,
@@ -19,7 +19,7 @@ internal static partial void LogBackgroundServiceStarted(
1919 [ LoggerMessage (
2020 EventId = LoggingEventIdConstants . BackgroundService . Started ,
2121 Level = LogLevel . Information ,
22- Message = "Started worker {serviceName }. Worker will run with cron expression {cronExpression }" ,
22+ Message = "Started worker {ServiceName }. Worker will run with cron expression {CronExpression }" ,
2323 SkipEnabledCheck = false ) ]
2424 internal static partial void LogBackgroundServiceStarted (
2525 this ILogger logger ,
@@ -29,7 +29,7 @@ internal static partial void LogBackgroundServiceStarted(
2929 [ LoggerMessage (
3030 EventId = LoggingEventIdConstants . BackgroundService . Stopped ,
3131 Level = LogLevel . Information ,
32- Message = "Stopped worker {serviceName }" ,
32+ Message = "Stopped worker {ServiceName }" ,
3333 SkipEnabledCheck = false ) ]
3434 internal static partial void LogBackgroundServiceStopped (
3535 this ILogger logger ,
@@ -38,41 +38,39 @@ internal static partial void LogBackgroundServiceStopped(
3838 [ LoggerMessage (
3939 EventId = LoggingEventIdConstants . BackgroundService . Cancelled ,
4040 Level = LogLevel . Warning ,
41- Message = "Cancellation invoked for worker {serviceName }" ,
41+ Message = "Cancellation invoked for worker {ServiceName }" ,
4242 SkipEnabledCheck = false ) ]
4343 internal static partial void LogBackgroundServiceCancelled (
4444 this ILogger logger ,
4545 string serviceName ) ;
4646
4747 [ LoggerMessage (
4848 EventId = LoggingEventIdConstants . BackgroundService . Retrying ,
49- Level = LogLevel . Warning ,
50- Message = "Unhandled exception occurred in worker {serviceName}. Worker will retry after {repeatIntervalSeconds } seconds" ,
49+ Level = LogLevel . Information ,
50+ Message = "Worker {ServiceName} will retry after {RepeatIntervalSeconds } seconds" ,
5151 SkipEnabledCheck = false ) ]
5252 internal static partial void LogBackgroundServiceRetrying (
5353 this ILogger logger ,
5454 string serviceName ,
55- int repeatIntervalSeconds ,
56- Exception exception ) ;
55+ int repeatIntervalSeconds ) ;
5756
5857 [ LoggerMessage (
5958 EventId = LoggingEventIdConstants . BackgroundService . Retrying ,
60- Level = LogLevel . Warning ,
61- Message = "Unhandled exception occurred in worker {serviceName}. Worker will retry on next defined in cron expression {cronExpression }" ,
59+ Level = LogLevel . Information ,
60+ Message = "Worker {ServiceName} will retry on next occurence pr the cron expression {CronExpression }" ,
6261 SkipEnabledCheck = false ) ]
6362 internal static partial void LogBackgroundServiceRetrying (
6463 this ILogger logger ,
6564 string serviceName ,
66- string cronExpression ,
67- Exception exception ) ;
65+ string cronExpression ) ;
6866
6967 [ LoggerMessage (
7068 EventId = LoggingEventIdConstants . BackgroundService . UnhandledException ,
7169 Level = LogLevel . Error ,
72- Message = "Unhandled exception occurred in worker {serviceName }" ,
70+ Message = "Unhandled exception occurred in worker {ServiceName }" ,
7371 SkipEnabledCheck = false ) ]
7472 internal static partial void LogBackgroundServiceUnhandledException (
7573 this ILogger logger ,
76- string serviceName ,
77- Exception exception ) ;
74+ Exception exception ,
75+ string serviceName ) ;
7876}
0 commit comments