new Logger()

Descripción

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

Detalles

utils/logger

Métodos


silent()

Descripción

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

Detalles

all()

Descripción

Turns on all logging levels

Detalles

level( lvl )

Descripción

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

Parámetros
Nombre Tipo Descripción
lvl string

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

Detalles

trace( The )

Descripción

Log a trace call

Parámetros
Nombre Tipo Descripción
The string

value to log

Detalles

debug( The )

Descripción

Log a debug call

Parámetros
Nombre Tipo Descripción
The string

value to log

Detalles

info( The )

Descripción

Log a info call

Parámetros
Nombre Tipo Descripción
The string

value to log

Detalles

warn( The )

Descripción

Log a warn call

Parámetros
Nombre Tipo Descripción
The string

value to log

Detalles

error( The )

Descripción

Log a error call

Parámetros
Nombre Tipo Descripción
The string

value to log

Detalles