nogger - the node.js logger

Simple node.js logger to log to logfile. With the streaming interface it is possible to watch the livelogs.
Getting Started
Install the module with: npm install nogger
var nogger = require('nogger');
var log = nogger.getLogger();
or short
var log = require('nogger').getLogger();
Documentation
Logger usage
You can use predefined logging functions or defined your own level of logging
log.debug("hey ho debug!");
log.info("hey ho info!");
log.warn("hey ho warning!");
log.error("hey ho error!");
log.c("connection","hey ho connection!");
configuration
To configure the Logger you can call setConfig
nogger.setConfig({
path: './logs/',
logOnly: [
'error',
'warn',
'connection'
],
rotate: "daily",
streamEnabled: true,
maxLogLength: 250,
password: "a",
port: 7076,
styles: {
"debug": {
color: "#c2d5ff",
"font-size": "0.9em"
},
"info": {
color: "#ffffff",
"font-size": "0.8em"
},
"warn": {
color: "#ff5f00",
"font-size": "1em"
},
"error": {
color: "#ea1c00",
"font-size": "1.1em"
}
},
overwriteConsole: true
}
Examples
To see the demo download the module with npm install nogger
and run node lib/demo
then go to localhost:7076 and use the default password "change-this" to log in.

Todo
Streams for writing and reading log messages and files.
Help is welcome!
License
Copyright (c) 2014 Paul Em. Licensed under the MIT license.