FC_EtLogLevelToString

 

FC_EtLogLevelToString - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Converting an enumeration element of the ET_LogLevel type into a string.

Description

Every enumeration element has a name or value. The return value of the function is the name of the enumeration element.

Interface

Input

Data type

Description

i_etLogLevel

ET_LogLevel

The ET_LogLevel value that has to be converted.

Return Value

Data type

Description

STRING[40]

Name of the enumeration element that was transferred at the input i_etLogLevel.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

InputParameterInvalid

UnknownLogLevel

20

The logger level is indeterminable.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The logger level has been transformed into a string successfully.

UnknownLogLevel

Enumeration name:

UnknownLogLevel

Enumeration value:

20

Description:

The logger level is indeterminable.

Cause

Solution

At the input i_etLogLevel, a number was transferred whose value cannot be related to any element of ET_LogLevel.

At the input i_etLogLevel, an element of the enumeration ET_LogLevel must be transferred.