nogger - the node.js logger

Simple node.js logger to log to logfile and store these files in a specified interval. It also offers a callback function when ever a log is made. You can give this to a public URL and use nogger-client (coming soon) to view the live logs
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
}
Examples
(Coming soon)
License
Copyright (c) 2014 Paul Em. Licensed under the MIT license.