LP360 v2020.2 introduced a new logging feature that can be enabled via the Diagnostics tab of the Project Settings dialog (File -> Project Settings -> Diagnostics).
- Enable Logging: Enables logging of information at the desired Log Level.
-
Rotating Log Files: Recommended to use this setting to limit the space on disk that log files may consume on the machine. When the number of log files is reached and the file size attained for the last one, the logging will begin overwriting with the first log file.
- Number of Log Files: The total number of log files to generate.
- File Size (MB): Maximum log file size before a new log file will be created.
- Log File Path: The location and name of the log file to be generated. Ensure the users have write permissions to this location. For example, "C:\ProgramData\LP360\LP360Diagnostics.log".
- Log Level: If user sets “Critical” as the level, then only Critical messages will be logged to log file. Here is a table to explain what will be logged when a log level is set.
| Log Level | Log types written to log file |
|---|---|
| Critical | Critical |
| Error | Critical + Error |
| Warning | Critical + Error + Warning |
| Information | Critical + Error + Warning+ Info |
| Debug | Critical + Error + Warning+ Info + Debug |
| Trace | Critical + Error + Warning+ Info + Debug + Trace |
What is log at each of these levels?
- Critical – The errors that should never happen and can bring down the processing or application get logged as critical.
- Errors – These errors can be user errors or data errors. The process stops or can produce the wrong results.
- Warnings – The warnings are like errors, but the process can complete with these warnings and produces correct results.
- Information – Logs information like the process has started, obtained license…etc.
- Debug – The debug log information that may not be useful to an end user but can help a developer diagnose the problem.
- Trace – Logs any tracing information or the flow of the code. Trace logs may not be useful to the end user but will be useful to a developer to help diagnose the problem.
Comments
0 comments
Please sign in to leave a comment.