OTX Reference  
OpenTestSystem.Otx.Extensions.Logging Namespace Reference

Writing logging messages to a logging resource More...

Namespaces

namespace  Actions
 Lists all ActionRealisation extensions.
 
namespace  DataTypes
 Data types, see also Core data types.
 
namespace  Terms
 Lists all Terms.
 
namespace  Variables
 Variable Access.
 

Detailed Description

Writing logging messages to a logging resource

The Logging library provides functions that help one can write log messages in log-resources (log files). To filter the log messages called Severity and log levels are used.
The severity level assigned each log message, depending on the severity of a group, see table. The highest severity is FATAL and TRACE is the lowest.

Overview of the severity levels (grades)
ServerityDescrition
FATAL (Highest)Serious error which requires the immediate termination of the process.
ERROROther runtime errors or unexpected conditions.
WARNSituations that are undesirable or unexpected, but not really wrong.
INFOInteresting runtime events.
DEBUGDetailed information on the flow through the sequence.
TRACE (Lowest)Even more detailed information.

The log level determines whether a message is written to the log resource or not. The following rule applies: If the log level is greater than or equal to the severity of the message is written the message, see table. Example: If the log level is set to ERROR, only messages with severity FATAL and ERROR are written to the log file. All other messages are ignored.

Overview of log levels (thresholds)
ServerityDescrition
OFF (Lowest)Logging is off, Nothing will be logged.
FATALMessages with severity FATAL will be logged.
ERRORMessages with severity ERROR or above will be logged.
WARNMessages with severity WARN or above will be logged.
INFOMessages with severity INFO or above will be logged.
DEBUGMessages with severity DEBUG or above will be logged.
TRACEMessages with severity TRACE or above will be logged.
ALL (Highest)All messages will be logged (this is the default setting).

The log level is generally set within the drain system, but can also be adjusted by an activity within a process. Similarly, the name of the log file is configured in the execution system.