Module molly.log
Module with functions for logging.
Functions
trace (message) | Log message with verbose level 'trace'. |
debug (message) | Log message with verbose level 'debug'. |
info (message) | Log message with verbose level 'info'. |
warn (message) | Log message with verbose level 'warn'. |
error (message) | Log message with verbose level 'error'. |
fatal (message) | Log message with verbose level 'fatal'. |
Functions
- trace (message)
-
Log message with verbose level 'trace'.
Parameters:
- message string Message.
Returns:
-
nil
- debug (message)
-
Log message with verbose level 'debug'.
Parameters:
- message string Message.
Returns:
-
nil
Usage:
> local log = require('molly.log') > log.debug('Total planned requests: 1010') [DEBUG 2021-12-1 12:26:8:689379] /home/sergeyb/sources/molly/jepsen/runner.lua:80: Total planned requests: 1010
- info (message)
-
Log message with verbose level 'info'.
Parameters:
- message string Message.
Returns:
-
nil
Usage:
> local log = require('molly.log') > log.info('Message') [INFO 2021-12-7 13:17:46:073544]: Message
- warn (message)
-
Log message with verbose level 'warn'.
Parameters:
- message string Message.
Returns:
-
nil
Usage:
> local log = require('jepsen.log') > log.warn('Message') [WARN 2021-12-7 13:17:46:073544]: Message
- error (message)
-
Log message with verbose level 'error'.
Parameters:
- message string Message.
Returns:
-
nil
- fatal (message)
-
Log message with verbose level 'fatal'.
Parameters:
- message string Message.
Returns:
-
nil