(9 intermediate revisions by 2 users not shown) | |||
Line 34: | Line 34: | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
===Logging methods used in UBIKKernel=== | ===Logging methods used in UBIKKernel=== | ||
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
Line 69: | Line 64: | ||
|- align="left" | |- align="left" | ||
|} | |} | ||
+ | |||
+ | === How To Configure Logging === | ||
*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 “values”, 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 “values”, which are set on their default. | ||
Line 77: | Line 74: | ||
*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. | ||
*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> | ||
+ | |||
+ | |||
+ | |||
+ | === Since Version 3.6 === | ||
+ | Replace our existing Microsoft.Practices.EnterpriseLibrary.Logging with more up-to-date solution like Serilog. | ||
+ | |||
Line 114: | Line 131: | ||
<!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS --> | <!-- DO NOT REMOVE THIS -->{{Template:Activity/End}}<!-- DO NOT REMOVE THIS --> | ||
− | == | + | ===How to configure logging Version 3.5 or erlier=== |
+ | * [[Configuration_Files/Logging.config]] | ||
* [[HowTo:Configure_Logging]] | * [[HowTo:Configure_Logging]] | ||
− | ==Useful links [What is Serilog]== | + | |
+ | ===Useful links [What is Serilog]=== | ||
* https://serilog.net/ | * https://serilog.net/ | ||
{{Category/Version|3.6.0}} | {{Category/Version|3.6.0}} | ||
[[Category:3.6.0|Serilog]] | [[Category:3.6.0|Serilog]] |
Latest revision as of 08:52, 16 November 2020
Serilog is a portable and structured logging framework to record diagnostic logs into files, console and SQL/NoSQL databases.
How to configure logging Version 3.5 or erlier