new Logger()
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
- Source:
- See:
-
- utils/logger
Methods
-
all()
-
Turns on all logging levels
- Source:
-
debug(The)
-
Log a
debugcallParameters:
Name Type Description Thestring value to log
- Source:
-
error(The)
-
Log a
errorcallParameters:
Name Type Description Thestring value to log
- Source:
-
info(The)
-
Log a
infocallParameters:
Name Type Description Thestring value to log
- Source:
-
level(lvl)
-
Sets the logging level to one of
trace,debug,info,warn,error.Parameters:
Name Type Description lvlstring The level to set it to. Can be one of
trace,debug,info,warn,error.- Source:
-
silent()
-
Turn off all logging. If you log something, it will not error, but will not do anything either
and the cycles are minimal.- Source:
-
trace(The)
-
Log a
tracecallParameters:
Name Type Description Thestring value to log
- Source:
-
warn(The)
-
Log a
warncallParameters:
Name Type Description Thestring value to log
- Source: