chimee-helper-log
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

chimee-helper-log

Build Status Coverage Status npm dependency Status devDependency Status Greenkeeper badge

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 log
  • msg string the message

info

src/index.js:67-72

equal to console.info, output [${tag}] > {$msg}

Parameters

  • tag string optional, the header of log
  • msg string the message

warn

src/index.js:78-83

equal to console.warn, output [${tag}] > {$msg}

Parameters

  • tag string optional, the header of log
  • msg string the message

debug

src/index.js:89-94

equal to console.debug, output [${tag}] > {$msg}

Parameters

  • tag string optional, the header of log
  • msg string the message

verbose

src/index.js:100-105

equal to console.verbose, output [${tag}] > {$msg}

Parameters

  • tag string optional, the header of log
  • msg string the message

Readme

Keywords

Package Sidebar

Install

npm i chimee-helper-log

Weekly Downloads

72

Version

0.2.3

License

MIT

Unpacked Size

30.2 kB

Total Files

9

Last publish

Collaborators

  • gaoyiyi
  • huzunjie
  • songguangyu
  • toxicjohann
  • welefen
  • yandeqiang