Transformer Pipeline Module API Reference (JavaScript)
8.0.2.290852-a608fcd3
|
The log package allows a script to write messages to the pipeline module's log file.
The log file is filtered on log level, and as such messages of a lower level than that the log file is currently set to will be ignored. The following log levels are available
log.ALWAYS
- This message is always loggedlog.CRITICAL
log.ERROR
log.NOTIFY
log.WARN
log.INFO
log.DEBUG
Functions | |
log.log (var level, var message) | |
Log a message to the pipeline logfile. More... | |
log.logLine (var level, var message) | |
Log a message to the pipeline logfile. More... | |
log.getLevel () | |
Return the current log level. | |
log.log | ( | var | level, |
var | message | ||
) |
Log a message to the pipeline logfile.
level | - Log level |
message | - Text to log |
This function will cause the message to be logged to the pipeline module's logfile at the appropriate level
The following example will log some a message to the pipeline logfile at debug level
log.logLine | ( | var | level, |
var | message | ||
) |
Log a message to the pipeline logfile.
level | - Log level |
message | - Text to log |
This function will cause the message to be logged to the pipeline module's logfile at the appropriate level