Skip to content

Commit

Permalink
Lower the logging level for Hangfire and Serilog
Browse files Browse the repository at this point in the history
  • Loading branch information
panosru committed Jan 5, 2024
1 parent c3df295 commit 28c7e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Hosts/RestApi/Application/AppBuilders/Serilog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static class Serilog
/// <returns></returns>
public static IApplicationBuilder UseSerilogBuilder(this IApplicationBuilder app)
{
//TODO: Revisit the logging configuration
app.UseSerilogRequestLogging(
options =>
{
Expand Down
2 changes: 2 additions & 0 deletions Hosts/RestApi/Application/appsettings.Development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Serilog:
Override:
Microsoft: Warning
System: Warning
Hangfire: Information
Serilog: Information
Enrich:
- FromLogContext
- WithMachineName
Expand Down

0 comments on commit 28c7e2a

Please sign in to comment.