In this topic (Added logging support to Hangfire ) some default log messages are written in to the history page. What I want is to log custom messages like that.
As an example, I’m doing a Fire-and-Forget method invocation like this.
BackgroundJob.Enqueue(() => SendEmail(name));
I want to log(write) custom messages to current job’s history page inside the SendEmail method.
Is there a way to do this?