Difference between revisions of "Serilog"
Line 20: | Line 20: | ||
! LogLevel !! Purpose | ! LogLevel !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | Verbose || is the noisiest level, generally used only as a last resort when debugging a difficult problem, and rarely (if ever) enabled for a production app. For example, local variables within an algorithm implementation might be logged at this level. | + | | Verbose ||It is the noisiest level, generally used only as a last resort when debugging a difficult problem, and rarely (if ever) enabled for a production app. For example, local variables within an algorithm implementation might be logged at this level. |
|- align="left" | |- align="left" | ||
| Debug || Debug is used for internal system events that are not necessarily observable from the outside, but useful when determining how something happened. For example, the details of requests and responses made to and from external integration points would often be logged at this level. | | Debug || Debug is used for internal system events that are not necessarily observable from the outside, but useful when determining how something happened. For example, the details of requests and responses made to and from external integration points would often be logged at this level. | ||
Line 70: | Line 70: | ||
|} | |} | ||
*Added a way for the User to configure the default log path, the file count limit, the log event level and rolling policies through Logger.config with changing only the “value”, which are set on their default. | *Added a way for the User to configure the default log path, the file count limit, the log event level and rolling policies through Logger.config with changing only the “value”, which are set on their default. | ||
− | **The default Log path is set to C:\Users\.......\source\repos\UBIK.Server\Branches\.......\UBIK.Studio\bin\Debug\Logs and its values can be changed to any local path(value="C:\logs"). | + | **The default Log path is set to C:\Users\.......\source\repos\UBIK.Server\Branches\.......\UBIK.Studio\bin\Debug\Logs and its values can be changed to any local path(e.g. value="C:\logs") or it can be changed using the Environment Variables (e.g. value="%SYSTEMDRIVE%\logs"). |
**The default for the event level is set to Debug and its values can be changed to Verbose, Information, Warning, Error or Fatal. | **The default for the event level is set to Debug and its values can be changed to Verbose, Information, Warning, Error or Fatal. | ||
**File default count limit is set to 31 and its values can be changed to any positive number. | **File default count limit is set to 31 and its values can be changed to any positive number. |
Revision as of 11:08, 5 August 2020
Serilog is a portable and structured logging framework to record diagnostic logs into files, console and SQL/NoSQL databases.
See also