Module logging
The logging module.
Fields:
output:(file) Where to write log messages (default: io.stderr).prefix:(string) The prefix to add before every message (default:"luapak: ").threshold:(int) The minimal log level that should be logged (default: 20).DEBUG (10)INFO (20)WARN (30)ERROR (40)
Functions
| log (level, msg, ...) | Logs the message with the specified level. |
| error (msg, ...) | Logs error message. |
| warn (msg, ...) | Logs warn message. |
| info (msg, ...) | Logs info message. |
| debug (msg, ...) | Logs debug message. |
Functions
- log (level, msg, ...)
-
Logs the message with the specified level.
Parameters:
- level int Valid log level number.
- msg string The message to log.
- ...
Arguments for string.format being applied to the
msg.
- error (msg, ...)
-
Logs error message.
Parameters:
- msg string The message to log.
- ...
Arguments for string.format being applied to the
msg.
- warn (msg, ...)
-
Logs warn message.
Parameters:
- msg string The message to log.
- ...
Arguments for string.format being applied to the
msg.
- info (msg, ...)
-
Logs info message.
Parameters:
- msg string The message to log.
- ...
Arguments for string.format being applied to the
msg.
- debug (msg, ...)
-
Logs debug message.
Parameters:
- msg string The message to log.
- ...
Arguments for string.format being applied to the
msg.