Suchiman / SerilogAnalyzer

Roslyn-based analysis for code using the Serilog logging library. Checks for common mistakes and usage problems.
Apache License 2.0
309 stars 29 forks source link

Configuration from environment variables #18

Open nblumhardt opened 7 years ago

nblumhardt commented 7 years ago

Serilog's ASP.NET Core configuration provider supports environment variables alongside JSON syntax.

https://github.com/serilog/serilog-settings-configuration#environment-variables

E.g. on Windows:

set Serilog:MinimumLevel=Debug

Alongside Show <appSettings> config and Show appsettings.json config, what do you think about listing Show CMD.exe config, Show bash config and/or Show PowerShell config?