OTX Reference  
OpenTestSystem.Otx.Extensions.Logging.DataTypes.LogLevel Class Reference

Describing log thresholds used by the SetLogLevel action More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Logging.DataTypes.LogLevel:
Inheritance graph

Public Attributes

LogLevelLiteral init
 Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More...
 

Detailed Description

Describing log thresholds used by the SetLogLevel action

LogLevel is an enumeration type describing log thresholds used by the SetLogLevel action

Order Relation
LogLevel values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value ALL = 0:


Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.



Conversion terms
The following table shows the rules for conversion to another data type:

ConversionResultSample
ToBooleanUndefined (should not be used)
ToIntegerReturns the index of the value in the LogLevels enumeration (smallest index is 0)Integer val = ToInteger(@LogLevel:ALL); // Returns 0
ToFloatUndefined (should not be used)
ToStringReturns the name of the enumeration valueString s = ToString(@LogLevel:ALL); // Returns "ALL"
ToByteFieldUndefined (should not be used)

Sample

Logging.LogLevel LogLevelVariable = @LogLevel:ALL;

Member Data Documentation

◆ init

LogLevelLiteral OpenTestSystem.Otx.Extensions.Logging.DataTypes.LogLevel.init

Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.

OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::TRACE
@ TRACE
OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::INFO
@ INFO
OpenTestSystem.Otx::DiagManager::OtxDiagApi::DataTypes::OtxSeverityTypes::ERROR
@ ERROR
OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::WARN
@ WARN
OpenTestSystem.Otx::DiagManager::NoneOtxDiagApi::LogLevels::ALL
@ ALL
OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::DEBUG
@ DEBUG
OpenTestSystem.Otx::DiagManager::NoneOtxDiagApi::LogLevels::OFF
@ OFF
OpenTestSystem.Otx::RuntimeConverter::Api::TraceLevels::FATAL
@ FATAL