Skip to content

Commit

Permalink
fix(app): tmp logger should only log warnings/errors and our own info…
Browse files Browse the repository at this point in the history
… messages
  • Loading branch information
SonicGD committed Feb 8, 2024
1 parent 2283cc1 commit be44591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sitko.Core.App/SitkoCoreBaseApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ private ILogger<ISitkoCoreApplicationBuilder> CreateInternalLogger()
restrictedToMinimumLevel: LogEventLevel.Debug);
}

tmpLoggerConfiguration.MinimumLevel.Warning();
tmpLoggerConfiguration.MinimumLevel.Override("Sitko.Core", LogEventLevel.Information);
var tmpLogger = tmpLoggerConfiguration.CreateLogger();
Log.Logger = tmpLogger; // set default logger until host is started
Console.OutputEncoding = Encoding.UTF8;
Expand Down

0 comments on commit be44591

Please sign in to comment.