stdio_log
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Package Sidebar

Install

npm i stdio_log

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

8.36 kB

Total Files

5

Last publish

Collaborators

  • kevin.leptons