Nutrias Punching Marmots
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

aslogger

2.0.0 • Public • Published

aslogger

Build Status Code Climate Code Coverage npm Version JS Standard

A logger

Installation

$ npm install aslogger --save

Usage

'use strict'
 
const aslogger = require('aslogger')
 
// Create a logger instance
let logger = aslogger({
  PREFIX: '[my-package] ',
  disabled: process.env.NODE_ENV === 'production'
})
 
// Print logs with ansi colors
logger.notice('This is notice message')
logger.info('This is info message')
logger.debug('This is debug message')
logger.trace('This is trace message')
 

License

This software is released under the MIT License.

Links

Keywords

install

npm i aslogger

Downloadsweekly downloads

28

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability