Open samuraiGH opened 5 hours ago
how can I log failures that occurred in an asp.net core application?
my code:
builder.Services.AddTempus(); builder.Services.AddTempusJob<NotifyJob>();
What kind of failures?
IJobScheduler has a JobError event you can subscribe to for unhandled exceptions, however we tend to have a try...catch within the job itself and inject an ILogger and log there.
IJobScheduler
JobError
try...catch
ILogger
how can I log failures that occurred in an asp.net core application?
my code: