log Module#
Logging helpers. This module is also available in autoexec.cfg.
Constants#
| Constant | Type |
|---|---|
ALERT |
number |
ALL |
number |
ASYNC |
number |
DEBUG |
number |
ERROR |
number |
FULL |
number |
IMMEDIATE |
number |
INFO |
number |
LEVEL |
number |
MESSAGE |
number |
MODULE |
number |
RELIABLE |
number |
THREAD |
number |
TIME |
number |
TIME_LOCAL |
number |
TIME_RELATIVE |
number |
TIME_UTC |
number |
TRACE |
number |
WARNING |
number |
Functions#
alert#
Logs an alert message.
debug#
Logs a debug message.
error#
Logs an error message.
info#
Logs an info message.
set_output#
Configures logger output.
Note
level_mask is the sum of log levels. output_mode is the sum of output flags.
set_output_rules#
Unknown.
warning#
Logs a warning message.
write#
Sends a formatted message to the logger.
Note
If arguments are supplied after message, the actual string is formed as string.format(message, ...).