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"); +