View logs in Hangfire dashboard

Hello

I’m new to Hangfire, but I’ve quickly got it working on ASP.NET Core.

Is there a way to write logs or other messages so that they are visible in the Hangfire Dashboard somewhere? Ideally in the Jobs -> Succeeded -> State panel or somewhere around there.

I’m using ASP.NET Core’s ILogger.

Hi me from 5 months ago,

This package will do it: https://github.com/pieceofsummer/Hangfire.Console

Something that uses ILogger would be better though.

Good luck.

2 Likes

I have released a simple package working with NLog (only for now) that shows logs on the job detail page. See: GitHub - meriturva/Hangfire.Dashboard.JobLogs: Show jobs log messages on hangfire dashboard

2 Likes

Cool, thanks for that @diego.bonura . I’ll check it out next time I use Hangfire.