1.0.1 • Published 9 years ago

node-jlogger v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

node-jlogger

Simple and robust nodejs console logger, create html and log files automatically, connect to nodejs-jlogger-server and monitor your apps in real time.

Instalation

npm install jlogger --save-dev

Usage

var console = require('jlogger');

console.log('Hello %s', 'world'); // [{date}][LOG]: Hello world
// or ...
console.log('Hello {0}', 'world'); // [{date}][LOG]: Hello world

Methods

console.config({}); // Configure console options.

console.clear(); // Clear console.
console.info(); // Write console info level message.
console.debug(); // Write console debug level message.
console.log(); // Write console log level message.
console.error(); // Write console error level message.
console.exception(); // Write console exception level message.
console.warn(); // Write console warning level message.

Licence

(The MIT license)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.