From 6f0dfa0c5fcdf38e83f270c3133059826a6456e1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 4 Jun 2012 09:18:58 +1000 Subject: [PATCH] Added note about console.log replacement. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index beec38a..9bbdc1f 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,16 @@ Out of the box it supports the following features: * 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.) +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