made sure example works with categories
This commit is contained in:
parent
e49f7107fb
commit
8f9b4444f6
@ -5,7 +5,7 @@ log4js.configure({
|
|||||||
{
|
{
|
||||||
type: "file",
|
type: "file",
|
||||||
filename: "cheese.log",
|
filename: "cheese.log",
|
||||||
categories: [ 'cheese','console' ]
|
category: [ 'cheese','console' ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "console"
|
type: "console"
|
||||||
@ -31,5 +31,9 @@ logger.warn('Cheese is quite smelly.');
|
|||||||
logger.error('Cheese %s is too ripe!', "gouda");
|
logger.error('Cheese %s is too ripe!', "gouda");
|
||||||
logger.fatal('Cheese was breeding ground for listeria.');
|
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");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user