Added note about console.log replacement.
This commit is contained in:
parent
82a6bee331
commit
6f0dfa0c5f
10
README.md
10
README.md
@ -17,6 +17,16 @@ Out of the box it supports the following features:
|
|||||||
* configurable log message layout/patterns
|
* configurable log message layout/patterns
|
||||||
* different log levels for different log categories (make some parts of your app log as DEBUG, others only ERRORS, etc.)
|
* different log levels for different log categories (make some parts of your app log as DEBUG, others only ERRORS, etc.)
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
{
|
||||||
|
appenders: [
|
||||||
|
{ type: "console" }
|
||||||
|
],
|
||||||
|
replaceConsole: true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## installation
|
## installation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user