Difference between revisions of "Serilog"
(→Description) |
(→How To Configure Logging) |
||
| Line 75: | Line 75: | ||
*The default Rolling policies is set to Day and its values can be changed to "Day", "Month" or "Year". | *The default Rolling policies is set to Day and its values can be changed to "Day", "Month" or "Year". | ||
| + | <source lang="xml"> | ||
| + | <LoggingConfiguration> | ||
| + | <add key="LogRootPath" value=""/> | ||
| + | <!-- Values can be "Verbose", "Debug", "Information", "Warning", "Error", "Fatal". Normally "Debug" should be fine and you should only change if you know well what you do. --> | ||
| + | <add key="LogLevel" value="Debug"/> | ||
| + | <!-- The most recent 31 files are retained by default (i.e. one long month). If the value is empty the default will be applied. You must specifically set value="null" to remove this limit and all log files will be kept. You can set any other positive number --> | ||
| + | <add key="RetainedFileCountLimit" value="31"/> | ||
| + | <!-- Value can be either "Day", "Month" or "Year". Default is "Day"--> | ||
| + | <add key="RollingInterval" value="Day"/> | ||
| + | </LoggingConfiguration> | ||
| + | </source> | ||
| + | |||
| + | [[Category:3.6.0|Serilog]] | ||
=== Since Version 3.6 === | === Since Version 3.6 === | ||
Revision as of 08:34, 16 November 2020
Serilog is a portable and structured logging framework to record diagnostic logs into files, console and SQL/NoSQL databases.
See also
