Logging Library
The logging library provides functionalities that allow you to write log messages in log resources (log files). To filter the log messages to so-called severity and log levels are used.
The severity-level associates each log message, depending on the severity of a group, see table. The highest severity is FATAL and the lowest is TRACE.
| Severity |
Description |
| FATAL (Highest) |
Serious error, which requires the immediate termination of the process |
| ERROR | General run-time error or unexpected behavior |
| WARN | Situations that are undesirable or unexpected, but not really wrong |
| INFO |
Interesting run-time events |
| DEBUG |
Information to reconstruct the sequence of a sequence can |
| TRACE (lowest) |
Detailed information to understand the sequence of a sequence can |
The log level determines whether a message is written to the log resource or not. The following rule applies: the log level is greater than or equal to the severity of the message, the message is written, see table. For example, the log level is set to ERROR, only messages with severity FATAL and ERROR in the log file written. All other messages are ignored.
| Threshold |
Description |
| OFF (Highest) |
Logging is disabled |
| FATAL |
There will be logged only messages with severity "FATAL" |
| ERROR |
Only messages with severity "ERROR" and logged over |
| WARN |
Only messages with severity "WARN" and logged over |
| INFO |
Only messages with severity "INFO" and logged over |
| DEBUG |
Only messages with the severity DEBUG and logged over |
| TRACE |
Only messages with severity "TRACE" and logged over |
| ALL (Highest) |
Information to reconstruct the sequence of a sequence can |
The log level is generally set within the drainage system, but can also be adjusted by an activity within a process. Similarly, the log file name is configured in the drainage system.
| SetLogLevel | Set the log level (threshold) in the drainage system | |
| WriteLog | Write a log message |