Difference between revisions of "Extensions.Logging.LogLevel"

From emotive
Jump to navigation Jump to search
m (Hb moved page LogLevel to Extensions.Logging.LogLevel: #3153)
Line 1: Line 1:
 
{{DISPLAYTITLE:Data Type '''LogLevel'''}}[[Category:DataType]][[Category:Logging]]
 
{{DISPLAYTITLE:Data Type '''LogLevel'''}}[[Category:DataType]][[Category:Logging]]
 
== Classification ==
 
== Classification ==
{{ClassificationDataType | LogLevel | Describing log thresholds used by the [[SetLogLevel]] action | [[Simple Data Type]] | - | DefaultValue=ALL | Literal=Yes }}
+
{{ClassificationDataType | LogLevel | Describing log thresholds used by the [[Extensions.Logging.SetLogLevel|SetLogLevel]] action | [[Core.DataTypes.Simple Data Type|Simple Data Type]] | - | DefaultValue=ALL | Literal=Yes }}
  
 
== Description ==
 
== Description ==
'''LogLevel''' is an enumeration type describing log thresholds used by the [[SetLogLevel]] action.
+
'''LogLevel''' is an enumeration type describing log thresholds used by the [[Extensions.Logging.SetLogLevel|SetLogLevel]] action.
  
The list of allowed enumeration values is defined in (see) [[Logging]].
+
The list of allowed enumeration values is defined in (see) [[Extensions.Logging|Logging]].
  
 
==Order Relation==
 
==Order Relation==

Revision as of 01:40, 16 February 2016

Classification

Name LogLevel
Short Description Describing log thresholds used by the SetLogLevel action
Class Simple Data Type
Base Data Type -
Default Value ALL
Provide a Literal Yes
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

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

The list of allowed enumeration values is defined in (see) Logging.

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:

ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF

Literal

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

LogLevels={ALL|TRACE|DEBUG|INFO|WARN|ERROR|FATAL|OFF}

Core Conversion

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

Conversion Result Sample
ToBoolean Undefined (should not be used)
ToInteger Returns the index of the value in the ResultStates enumeration (smallest index is 0) Integer val = ToInteger(@LogLevel:ALL); // Returns 0
ToFloat Undefined (should not be used)
ToString Returns the name of the enumeration value String s = ToString(@LogLevel:ALL); // Returns "ALL"
ToByteField Undefined (should not be used)

Sample

LogLevel MyLogLevelVariable = @LogLevel:ALL;