Skip to content

Commit 73a9b46

Browse files
authored
Merge pull request #1058 from nicolaj-hartmann/add-structured-logging-in-hangfire
Add structured logging in hangfire
2 parents 4349311 + e27c274 commit 73a9b46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private Task<IJobId> ScheduleAsync(
9898

9999
var id = schedule(jobDefinition, json);
100100

101-
_logger.LogInformation($"Scheduled job '{id}' with name '{jobDefinition.Name}' in Hangfire");
101+
_logger.LogInformation("Scheduled job {JobId} with name {JobDefinitionName} in Hangfire", id, jobDefinition.Name);
102102

103103
return Task.FromResult<IJobId>(new HangfireJobId(id));
104104
}

0 commit comments

Comments
 (0)