Log functions


The following functions are for logging. Each takes a single positional argument:

The log messages that are output automatically include the name of the pattern performing the log action.  Logs are stored in the directory /usr/tideway/log. The file tw_svc_eca_patterns_nn.log contains log messages from TPL patterns, where nn is the ECA engine number of the Reasoning subsystem. If a pattern is misbehaving, its output will be here. For more information, see Contents of the logs.

Each function takes a single positional argument:

Function name

Parameter

Description

log.debug

(string)

Log the given message with a debug level message.

log.info

(string)

Log the given message with an info level message.

log.warn

(string)

Log the given message with a warn level message.

log.error

(string)

Log the given message with an error level message.

log.critical

(string)

Log the given message with a critical level message.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*