Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

246

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability