Log levels can be
ALL logs everything. DEBUG, INFO, WARN, ERROR and FATAL have increasing levels of message filtration. Nothing is logged on OFF.
We can issue log messages to the system or AssemblyLine logs by
using the logmsg() method from JavaScript™, wherever TDI allows scripting. It can take one or two parameters.
See the Java API documentation for the logmsg() declaration (package com.ibm.di.server, class AssemblyLine or class RS).
The interface for the logmsg() method (both main and task) with
additional log level parameter is logmsg (String logLevel, String
msg). The legal values for logLevel are: "FATAL", "ERROR", "WARN", "INFO", "DEBUG", corresponding to the log levels available for log
Appenders. Any unrecognized value is treated as "DEBUG".
Note that the IBM TDI logmsg() JavaScript calls
log on INFO level by default. This means that setting loglevel to
WARN or lower silences your logmsg as well as all Detailed Log settings.
However, with the level parameter to the logmsg() call we can override
the log level for individual logmsg() calls.