0.0.2 • Published 8 years ago

tpc-logservice v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Build Status Coverage Status #tpc-logservice

A simple multi-transport logging utility for node.js based application.

Installation

npm install tpc-logservice --save

Configuration

Setup the Environment

Set the environment variables.

NODE_ENV=development
APP_NAME=my-app
LOG_LEVEL=info

Usage

Like most logging libraries, you create a logger instance and call methods named after the logging levels:

var logService=require('tpc-logservice');
var log=logService.init();
log.info('Hello, World!');
log.warn('au revoir', {lang:'fr'});

That's all folks!