gengojs-debug
The debugger console for gengo.js
Usage
ES6
; levelargs:*;
ES5
var debug = ; levelargs:*;
It's even possible to chain the methods:
/* Example */ ;
Notes
It's best if you define a logger with a namespace set when you require gengojs-debug
:
/* Example */ var debug = ;var log = ; log;
In terminal:
# In OSX, set the namespace and the debug level then run a file: DEBUG=gengo.core:warn, node index.js # In Windows, set the namespace and the debug level: DEBUG=gengo.core:warn# Run the file node index.js
Namespaces
The available namespaces are:
- core
- parser
- router
- backend
- api
- localize
- header
Levels
The available levels are:
- debug
- warn
- error
- info
- verbose
- silly
Note that you must prepend 'gengo'
before the namespaces
as you access the namespace with a '.'
and then specify
the debug level after appending a ':'
.
Example:
DEBUG=gengo.parser:debug gengo.router:*