FUNCTION "FC_Loglevel_to_String" : String
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_INPUT 
      nLogLevel : Int;
   END_VAR


BEGIN
	CASE #nLogLevel OF
	    "E_LogLevel.DEBUG":
	        #FC_Loglevel_to_String := 'DEBUG';
	    "E_LogLevel.ERROR":
	        #FC_Loglevel_to_String := 'ERROR';
	    "E_LogLevel.INFO":
	        #FC_Loglevel_to_String := 'INFO';
	    "E_LogLevel.INT_ERROR":
	        #FC_Loglevel_to_String := 'INT_ERROR';
	    "E_LogLevel.WARNING":
	        #FC_Loglevel_to_String := 'WARNING';
	    ELSE
	        #FC_Loglevel_to_String := 'UNKNOWN';
	END_CASE;
END_FUNCTION

