8000 made sure example works with categories · rboss/log4js-node@8f9b444 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f9b444

Browse files
author
Gareth Jones
committed
made sure example works with categories
1 parent e49f710 commit 8f9b444

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ log4js.configure({
55
{
66
type: "file",
77
filename: "cheese.log",
8-
categories: [ 'cheese','console' ]
8+
category: [ 'cheese','console' ]
99
},
1010
{
1111
type: "console"
@@ -31,5 +31,9 @@ logger.warn('Cheese is quite smelly.');
3131
logger.error('Cheese %s is too ripe!', "gouda");
3232
logger.fatal('Cheese was breeding ground for listeria.');
3333

34+
//these don't end up in cheese.log, but will appear on the console
35+
var anotherLogger = log4js.getLogger('another');
36+
anotherLogger.debug("Just checking");
37+
3438

3539

0 commit comments

Comments
 (0)
0