From 8f9b4444f60d7ee8e0ec9dfcedc4e07e3e5a98a5 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 29 Jun 2012 09:05:18 +1000 Subject: [PATCH] made sure example works with categories --- example.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example.js b/example.js index a798b40..9662fe0 100644 --- a/example.js +++ b/example.js @@ -5,7 +5,7 @@ log4js.configure({ { type: "file", filename: "cheese.log", - categories: [ 'cheese','console' ] + category: [ 'cheese','console' ] }, { type: "console" @@ -31,5 +31,9 @@ logger.warn('Cheese is quite smelly.'); logger.error('Cheese %s is too ripe!', "gouda"); logger.fatal('Cheese was breeding ground for listeria.'); +//these don't end up in cheese.log, but will appear on the console +var anotherLogger = log4js.getLogger('another'); +anotherLogger.debug("Just checking"); +