Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

aslogger

2.0.1 • Public • Published

aslogger

Build Status 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

645

version

2.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability