serilog / serilog-settings-configuration

A Serilog configuration provider that reads from Microsoft.Extensions.Configuration
Apache License 2.0
446 stars 129 forks source link

Configured files do not get written to on sub-loggers. #317

Closed AraHaan closed 2 years ago

AraHaan commented 2 years ago

I have a simple configuration for a discord bot here.

However when I run my program I find it's self logs, efcore logs, and Remora.Discord logs do not get output into their configured files for some reason.

Packages used:

AraHaan commented 2 years ago

It seems the issue seems to be with my sub-loggers somehow they all simply log nothing.

AraHaan commented 2 years ago

I suspect the issue is in LoggerSinkConfiguration.Logger.

AraHaan commented 2 years ago

Turns out it was due to me setting the default level on the root logger to Fatal, somehow the Information level on the sub-loggers were not being applied.