tpc-logservice
v0.0.2
Published
Log Service
Downloads
2
Readme
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!