8000 Added note about console.log replacement. · rboss/log4js-node@6f0dfa0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f0dfa0

Browse files
author
Gareth Jones
committed
Added note about console.log replacement.
1 parent 82a6bee commit 6f0dfa0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ Out of the box it supports the following features:
1717
* configurable log message layout/patterns
1818
* different log levels for different log categories (make some parts of your app log as DEBUG, others only ERRORS, etc.)
1919

20+
NOTE: from log4js 0.5 onwards you'll need to explicitly enable replacement of node's console.log functions. Do this either by calling `log4js.replaceConsole()` or configuring with an object or json file like this:
21+
22+
```javascript
23+
{
24+
appenders: [
25+
{ type: "console" }
26+
],
27+
replaceConsole: true
28+
}
29+
```
2030

2131
## installation
2232

0 commit comments

Comments
 (0)
0