This package has been deprecated

Author message:

WARNING: This module is deprecated. Please use tpc-dataservice module instead

tpc-logger-util

0.1.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i tpc-logger-util

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • dbohl
  • ranatarajan