details:   /erp/erp/devel/pi/rev/00480773b8bf
changeset: 4822:00480773b8bf
user:      Juan Pablo Aroztegi <juanpablo.aroztegi <at> openbravo.com>
date:      Mon Aug 24 19:25:31 2009 +0200
summary:   Fixes issue 10329: Add optional ConsoleAppender to display logs in 
Eclipse

diffstat:

 config/log4j.lcf.template |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r a6f55577e4d6 -r 00480773b8bf config/log4j.lcf.template
--- a/config/log4j.lcf.template Sat Aug 22 14:52:32 2009 +0200
+++ b/config/log4j.lcf.template Mon Aug 24 19:25:31 2009 +0200
@@ -9,12 +9,13 @@
 # * License for the specific  language  governing  rights  and  limitations
 # * under the License. 
 # * The Original Code is Openbravo ERP. 
-# * The Initial Developer of the Original Code is Openbravo SL 
-# * All portions are Copyright (C) 2007-2008 Openbravo SL 
+# * The Initial Developer of the Original Code is Openbravo SL
+# * All portions are Copyright (C) 2007-2009 Openbravo SL
 # * All Rights Reserved. 
 # * Contributor(s):  ______________________________________.
 # ************************************************************************
 
+# to enable logging in i.e. eclipse console add ", C" to the line below
 log4j.rootCategory=INFO, R, O1
 
 # Set our global levels
@@ -37,6 +38,11 @@
 # Keep one backup file
 log4j.appender.R.MaxBackupIndex=1
 
+# C is an optional ConsoleAppender for usage in i.e. Eclipse
+log4j.appender.C=org.apache.log4j.ConsoleAppender
+log4j.appender.C.layout=org.apache.log4j.PatternLayout
+log4j.appender.C.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
+
 log4j.category.reloadXml=ERROR
 
 # To debug an specific class

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to