npm.io
1.0.0 • Published 6 years ago

parrot-logger

Licence
MIT
Version
1.0.0
Deps
4
Size
9 kB
Vulns
0
Weekly
0
Stars
1
DeprecatedThis package is deprecated

ParrotLogger

CI LICENCE GitHub repo size

Screenshots

Console log file

Description

Lightweight logger module.

Install

npm
npm i parrot-logger
Yarn
yarn add parrot-logger

Usage

import Logger from 'parrot-logger'

const logger = new Logger({
  console: {
    type: {
      DEBUG: true
    }
  }
})

logger
  .info('Hello')
  .warn('World')
  .error(new Error('oof'))
  .debug('Not displayed on console by default.')

Default Logger Options

Look at this

Keywords