debug is tiny, no dependecy alternative to debug.
debug also allows you to customize debug output format using the DEBUG_FORMAT
.
Declare env DEBUG_FILE as the debug target
- use :time for ISO timestamp
- use :namespace for debug namespace
- use :body for main payload
- use :diff for last msg diff
Defaut DEBUG_FORMAT is ":time :namespace :body"
debug will duplex everything to the console into the trace file
debug will overrite debug.log (per specifications) to a dedicated file
Exclude debug from browserify is a good way to make sure only one debug reference is loaded.