Programming Reference | Module messages for the Engineering (logging / trac ... Syntax The syntax for recording messages is as follows: m_Trace.Log(TLEVEL, FNMACRO"A message", …); With these properties: TLEVEL categorizes a message into one of five levels. The recording of the higher level always includes the recording of the lower levels: i.e. a message classified at level "tlWarning" will occur with level "tlAlways", "tlError" and "tlWarning" - it will NOT record the "tlInfo" and "tlVerbose" messages. FNMACRO can be used to place the function name before the message to be printed ◦FENTERA: Used when entering a function; prints the function name followed by ">>>". ◦FNAMEA:
Used within a function; prints the function name. The %q format specifier is used to output pointers and other variables of platform-specific size. ◦FLEAVEA: Used when exiting a function; prints the function name followed by " TwinCAT 3 210 Version: 1.19.1 Level 0 tlAlways Level 1 tlError Level 2 tlWarning Level 3 tlInfo Level 4 tlVerbose