0.1.3 • Published 8 years ago

tpc-logger-util v0.1.3

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

Build Status Coverage Status #tpc-logger-util

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

Installation

npm install tpc-logger-util --save

Configuration

Setup the Environment

Set the environment variable TPC_ENV to the required environment.

TPC_ENV=dev

Usage

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

var logger=require('tpc-logger-util');
var log=logger.createLogger('my-app');
log.info('Hello, World!');
log.warn('au revoir', {lang:'fr'});

That's all folks! log into to loggly.com to view the streamed logs based on your environment.

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago