Closed AdisonCavani closed 1 year ago
The trick to successful dev/prod configuration with this library is not to put much (or anything at all) related to Serilog in appsettings.json
. Rather, put full configurations in each of appsettings.Development.json
and appsettings.Production.json
. This will avoid a whole range of quirky interactions between the two setups.
Hope this helps, Nick
I managed to resolve the issue by adding default theme to args.
I want to use
JSON formatter
in production, but preservedefault formatter
in development. In prod, everything is fine, but in development it's still usingJSON formatter
.How can I use
default formatter
with this configuration?I'm using this configuration files.
appsettings.json
:appsettings.development.json
: