raypatterson / bic-logger

Bic logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bic Logger

Purpose

Create a console wrapper that can have log level settings without locking into a lib.

Status

Currently a wrapper for Minilog.

Install

$ npm install @bicjs/bic-logger

Usage

var logger  = require('@bicjs/bic-logger')('my logger id');

logger
  .debug('whaaa?!')
  .info('ohhhh.')
  .log('meh.')
  .warn('yo!')
  .error('HAAAAALP!!!');

Roadmap

Add a simple method to set logging level. The Minilog filters are cool but maybe overkill.

About

Bic logger

License:MIT License


Languages

Language:JavaScript 100.0%