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:

Returns:

    nil
debug (message)
Log message with verbose level 'debug'.

Parameters:

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:

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:

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:

Returns:

    nil
fatal (message)
Log message with verbose level 'fatal'.

Parameters:

Returns:

    nil
generated by LDoc 1.4.2