made sure example works with categories

This commit is contained in:
Gareth Jones 2012-06-29 09:05:18 +10:00
parent e49f7107fb
commit 8f9b4444f6

View File

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