0.2.2 • Published 6 years ago

@rabbitcc/logger v0.2.2

Weekly downloads
1
License
GPL-3.0
Repository
-
Last release
6 years ago

Yet anthor logger tool

Works on Nodejs and Browsers

Install

npm i -D @rabbitcc/logger

Usage

import log from '@rabbitcc/logger'

log.info('name', 'action', 'contents')

Setup logger level

// via cross-env scripts

cross-env LOGGER_LEVEL=DEBUG

Or if you want works on browser, can pass the evn via webpack.EnvironmentPlugin

plugins: [
  //...other plugins

  new EnvironmentPlugin([ 'LOGGER_LEVEL' ]),

  // or pass default level if not set

  new EnvironmentPlugin({ LOGGER_LEVEL: 'DEBUG' }),
]
0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago