Skip to content

mskhirwar/node-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

node-logger

A simple logger for node.js.

Installation

npm install git://github.com/jquery/node-logger.git

Note: This module is very basic and is only intended to standardize logging within jQuery projects, so this is not versioned or published on npm.

Usage

var logger = require( "logger" ).init( "appname" );
logger.log( "hello" );

The logger will log to syslog by default. If the main script is executed with --console then the logger will log to the console, allowing for easier testing during development.

API

The logger supports three methods:

  • logger.log( msg )
  • logger.warn( msg )
  • logger.error( msg )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published