Skip to content

Commit

Permalink
Merge pull request #1058 from nicolaj-hartmann/add-structured-logging…
Browse files Browse the repository at this point in the history
…-in-hangfire

Add structured logging in hangfire
  • Loading branch information
rasmus authored Oct 21, 2024
2 parents 4349311 + e27c274 commit 73a9b46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private Task<IJobId> ScheduleAsync(

var id = schedule(jobDefinition, json);

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

return Task.FromResult<IJobId>(new HangfireJobId(id));
}
Expand Down

0 comments on commit 73a9b46

Please sign in to comment.