FC_EtLogLevelToString - General Information
Type: |
Function |
Available as of: |
V1.0.4.0 |
Converting an enumeration element of the ET_LogLevel type into a string.
Every enumeration element has a name or value. The return value of the function is the name of the enumeration element.
Input |
Data type |
Description |
---|---|---|
i_etLogLevel |
The ET_LogLevel value that has to be converted. |
Data type |
Description |
---|---|
STRING[40] |
Name of the enumeration element that was transferred at the input i_etLogLevel. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
20 |
The logger level is indeterminable. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The logger level has been transformed into a string successfully.
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. |