class Logger
Logger implementation.
index
members
-
logger:push(fn, ...)
– push an indentation level and execute a function in it. -
logger:set_time(time)
– set the output time (runtime/evaltime). -
logger:put(message)
– write out a message (for internal use).
static functions
-
Logger(level)
– create a new Logger. -
Logger:init(level)
– set up the global Logger singleton.
details
members
-
– push an indentation level and execute a function in it.
parameters:
- the function to execute
-
parameters to
fn
-
– set the output time (runtime/evaltime).
parameters:
-
(
'eval'
or'run'
)
-
(
-
– write out a message (for internal use).
parameters:
static functions
-
– create a new Logger.
parameters:
- the log-level to log at.
-
– set up the global Logger singleton.
The available log-levels are:
'debug'
'trace'
'log'
(the default)'warn'
'error'
'print'
'silent'
parameters:
- the level to initialize the logger at.