OTX Reference  
OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog Class Reference

Writes a log-message More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog:
Inheritance graph

Public Attributes

SeverityLevelTerm level
 Cardinality [1]
Severity-level of the log-message More...
 
StringTerm message
 Cardinality [1]
Log-message which is written. More...
 
StringTerm target
 Cardinality [0..1]
Optional path to the log file in URI format in which the message is to be written. Relative paths refer to OTX-Home. If omitted, the path inside logging project settings is used. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Writes a log-message

The WriteLog-activity causes the OTX runtime system to write a log-message into a logging-resource provided that the severity-level of that message is higher or equal than the currently set log-level threshold.

The particular logging-resource to which the log-message will be written may be identified by the optional <target> element. Otherwise (if no explicit target is given), the location of the logging-resource depends on the specific runtime system settings.

Exceptions
Core.Exceptions.InvalidReferenceException
Syntax
Logging.WriteLog(SeverityLevelTerm level, StringTerm target = "", StringTerm message);
Examples
// Local Declarations
// Flow
Logging.WriteLog(@SeverityLevel:TRACE, NULL, "Message");

Member Data Documentation

◆ level

SeverityLevelTerm OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.level

Cardinality [1]
Severity-level of the log-message

◆ message

StringTerm OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.message

Cardinality [1]
Log-message which is written.

◆ target

StringTerm OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.target

Cardinality [0..1]
Optional path to the log file in URI format in which the message is to be written. Relative paths refer to OTX-Home. If omitted, the path inside logging project settings is used.

OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.message
StringTerm message
Cardinality [1] Log-message which is written.
Definition: Logging.cs:525
OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.target
StringTerm target
Cardinality [0..1] Optional path to the log file in URI format in which the message is to be written....
Definition: Logging.cs:515
OpenTestSystem.Otx.Extensions.Logging.Actions.WriteLog.level
SeverityLevelTerm level
Cardinality [1] Severity-level of the log-message
Definition: Logging.cs:505