tpc-logservice

0.0.2 • Public • Published

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!

/tpc-logservice/

    Package Sidebar

    Install

    npm i tpc-logservice

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • dbohl
    • ranatarajan