2.1.0 • Published 1 year ago

stdio_log v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

js_stdio_log

  • Simple log Javascript APIs with four level info, debug, warn and error.
  • Log data will be write to stdout or stderr.
  • Install package with command npm install stdio_log@1.0.0.
  • Major version with even number is use for development, for example 0.3.0, 2.5.1.
  • Major version with odd number is use for production, for example 1.2.0, 3.0.0.

APIs

Use it directly

const {log} = requrie('stdio_log')

log.info('one', 'two')
log.debug('three', 'four')
log.warn('five')
log.error('six')
log.write(Level.INFO, 'seven', 'eight')

Create a new instance

const {Log, Level} = requrie('stdio_log')

let log = Log.create({
    level: Level.INFO,
    tag: 'foo.bar'
})

Development

npm install
npm run standardize
npm test
npm run make_typescript_declaration
2.1.0

1 year ago

2.0.0

1 year ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago