0.0.1 • Published 8 years ago

cool-logger v0.0.1

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

cool-logger

A cool yet simple logger for Node.js.

Screenshot

Installation

$ npm install cool-logger

Usage

import { format, critical, error, warning, notice, info, debug, log } from "call-dir";

// ... and let the magic happen:
critical( "This is a critical message" );
error( "This is a error message" );
warning( "This is a warning message" );
notice( "This is a notice message" );
info( "This is a info message" );
debug( "This is a debug message" );
log( "This is a custom APP message", "APP" );
log( "This is a custom DAB message", "DAB" );

// ... also provides a morgan format for Express.js:
app.use( morgan( format ) );