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
 Severity-level of the log-message More...
 
StringTerm message
 Log-message which is written. More...
 
StringTerm target
 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
 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);
StringTerm target
Optional path to the log file in URI format in which the message is to be written....
Definition: Logging.cs:515
StringTerm message
Log-message which is written.
Definition: Logging.cs:525
SeverityLevelTerm level
Severity-level of the log-message
Definition: Logging.cs:505
Examples
// Local Declarations
// Flow
Logging.WriteLog(@SeverityLevel:TRACE, NULL, "Message");

Member Data Documentation

◆ level

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

Severity-level of the log-message

◆ message

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

Log-message which is written.

◆ target

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

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.