From 863269ced6fefac6afe5cc306a0f851daf0afe0a Mon Sep 17 00:00:00 2001 From: Mathew Kurian Date: Mon, 26 May 2014 21:13:53 -0500 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8678464..cae15d8 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,23 @@ console.low("[Tagname]Simple message"); ---- ```js // Inside app.js -app.configure(function () { - app.use(scribe.express.logger); -} +// If you are trying to use it. Just do the following. +var scribe = require('./libs/scribe'); + +scribe.addLogger("log", true /* Save to file? */, true /* Print to console? */, 'green'); +scribe.addLogger('error', true, true, 'red'); +scribe.addLogger('warn', true, true, 'yellow'); +scribe.addLogger('realtime', true, true, 'underline'); +scribe.addLogger('high', true, true, 'magenta'); +scribe.addLogger('normal', true, true, 'white'); +scribe.addLogger('low', true, true, 'grey'); +scribe.addLogger('info', true, true, 'cyan'); + +// Express.js Output +app.use(scribe.express.logger(function(req, res){ + return true; +})); + // Enable Web Control Panel app.get('/log', scribe.express.getlog); ```