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
src/index.js:14-106
Log Object
GLOBAL_TAG
src/index.js:25-25
Type: string
FORCE_GLOBAL_TAG
src/index.js:29-29
Type: boolean
ENABLE_ERROR
src/index.js:33-33
Type: boolean
ENABLE_INFO
src/index.js:37-37
Type: boolean
ENABLE_WARN
src/index.js:41-41
Type: boolean
ENABLE_DEBUG
src/index.js:45-45
Type: boolean
ENABLE_VERBOSE
src/index.js:49-49
Type: boolean
error
src/index.js:55-61
equal to console.error, output [${tag}] > {$msg}
Parameters
tag
string optional, the header of logmsg
string the message
info
src/index.js:67-72
equal to console.info, output [${tag}] > {$msg}
Parameters
tag
string optional, the header of logmsg
string the message
warn
src/index.js:78-83
equal to console.warn, output [${tag}] > {$msg}
Parameters
tag
string optional, the header of logmsg
string the message
debug
src/index.js:89-94
equal to console.debug, output [${tag}] > {$msg}
Parameters
tag
string optional, the header of logmsg
string the message
verbose
src/index.js:100-105
equal to console.verbose, output [${tag}] > {$msg}
Parameters
tag
string optional, the header of logmsg
string the message