new Logger()

Description

A logger class that you can mix into your classes to handle logging settings and state at an object level.
See utils/logger for the members of this class

Details

utils/logger

Methods


silent()

Description

Turn off all logging. If you log something, it will not error, but will not do anything either
and the cycles are minimal.

Details

all()

Description

Turns on all logging levels

Details

level( lvl )

Description

Sets the logging level to one of trace, debug, info, warn, error.

Parameters
Name Type Description
lvl string

The level to set it to. Can be one of trace, debug, info, warn, error.

Details

trace( The )

Description

Log a trace call

Parameters
Name Type Description
The string

value to log

Details

debug( The )

Description

Log a debug call

Parameters
Name Type Description
The string

value to log

Details

info( The )

Description

Log a info call

Parameters
Name Type Description
The string

value to log

Details

warn( The )

Description

Log a warn call

Parameters
Name Type Description
The string

value to log

Details

error( The )

Description

Log a error call

Parameters
Name Type Description
The string

value to log

Details