Skip to content

Commit

Permalink
Merge pull request #17 from AlexisPicot/master
Browse files Browse the repository at this point in the history
Update HangfireLogger.cs
  • Loading branch information
AnderssonPeter authored Mar 6, 2024
2 parents 4e99c15 + 69d71d1 commit 158c8ce
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Hangfire.Console.Extensions/HangfireLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@ public IDisposable BeginScope<TState>(TState state)

public bool IsEnabled(LogLevel logLevel)
{
return true;
switch (logLevel)
{
case LogLevel.Critical:
case LogLevel.Error:
case LogLevel.Warning:
case LogLevel.Information:
case LogLevel.Debug:
case LogLevel.Trace:
return true;
default:
return false;
}
}

private ConsoleTextColor GetConsoleColor(LogLevel logLevel)
Expand Down

0 comments on commit 158c8ce

Please sign in to comment.