Log

class log
static log(opts, level, ...)

Log a message

Parameters
  • opts (table) – a table containing options for this log message

  • level (str) – the level of this log message

  • vararg (any) – arbitrary values to print

static print_with(opts, ...)

Print a message

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to print

static print(...)

Print a message

Parameters

vararg (any) – arbitrary values to print

static fatal_with(opts, ...)

Log at the fatal level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static fatal(...)

Log at the fatal level

Parameters

vararg (any) – arbitrary values to log

static error_with(opts, ...)

Log at the error level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static error(...)

Log at the error level

Parameters

vararg (any) – arbitrary values to log

static warn_with(opts, ...)

Log at the warning level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static warn(...)

Log at the warning level

Parameters

vararg (any) – arbitrary values to log

static info_with(opts, ...)

Log at the info level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static info(...)

Log at the info level

Parameters

vararg (any) – arbitrary values to log

static debug_with(opts, ...)

Log at the debug level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static debug(...)

Log at the debug level

Parameters

vararg (any) – arbitrary values to log

static trace_with(opts, ...)

Log at the trace level

Parameters
  • opts (table) – a table containing options for this log message

  • vararg (any) – arbitrary values to log

static trace(...)

Log at the trace level

Parameters

vararg (any) – arbitrary values to log