chimee-helper-log
logger of chimee
get started
npm install chimee-helper-log --save
if you are using flow
, you should import our flow defination, by adding this to your .flowconfig
.
[ignore]
[include]
[libs]
./node_modules/chimee-helper-log/lib/index.flow.js
[options]
[lints]
doc
Log
Log Object
GLOBAL_TAG
Type: string
FORCE_GLOBAL_TAG
Type: boolean
ENABLE_ERROR
Type: boolean
ENABLE_INFO
Type: boolean
ENABLE_WARN
Type: boolean
ENABLE_DEBUG
Type: boolean
ENABLE_VERBOSE
Type: boolean
error
equal to console.error, output [${tag}] > {$msg}
Parameters
info
equal to console.info, output [${tag}] > {$msg}
Parameters
warn
equal to console.warn, output [${tag}] > {$msg}
Parameters
debug
equal to console.debug, output [${tag}] > {$msg}
Parameters
verbose
equal to console.verbose, output [${tag}] > {$msg}
Parameters