Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010329Openbravo ERPK. Packagingpublic2009-08-19 09:292009-11-14 00:00
rafaroda 
jpabloae 
normalminoralways
closedfixed 
5
 
 
Core
No
0010329: Add ConsoleAppender to display logs in Eclipse
In order to display error logs in Eclipse, we need to make the following:
- Open log4j.lcf (in main dir, not in config)
- Copy all lines with log4j.appender.A1
- Paste them into config/log4j.lcf i.e. after the log4j.appender.R.MaxBackupIndex line
- Add a ", A1" to the first line about rootCategory.

This enables logging to Console (i.e. eclipse console) in addition to any other already configured logging.

We might want to add the A1 lines to the .template without activating them. So the instructions would just be add the part to rootCategory.. If we do this i would rename A1 to C to better state the purpose (ConsoleAppender)
No tags attached.
diff logging.diff (1,223) 2009-08-19 14:56
https://issues.openbravo.com/file_download.php?file_id=1663&type=bug
Issue History
2009-08-19 09:29rafarodaNew Issue
2009-08-19 09:29rafarodaAssigned To => jpabloae
2009-08-19 14:15shuehnerNote Added: 0019055
2009-08-19 14:38jpabloaeNote Added: 0019058
2009-08-19 14:44jpabloaeStatusnew => feedback
2009-08-19 14:56shuehnerFile Added: logging.diff
2009-08-19 14:57shuehnerNote Added: 0019063
2009-08-24 19:26hgbotCheckin
2009-08-24 19:26hgbotNote Added: 0019202
2009-08-24 19:26hgbotStatusfeedback => resolved
2009-08-24 19:26hgbotResolutionopen => fixed
2009-08-24 19:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/00480773b8bf9985f47e1d75c870b6eb5bd515cf [^]
2009-11-13 16:36plujanNote Added: 0021816
2009-11-13 16:36plujanStatusresolved => closed
2009-11-14 00:00anonymoussf_bug_id0 => 2897488

Notes
(0019055)
shuehner   
2009-08-19 14:15   
Note we only want to add the ConsoleAppender for eclipse, normally one does not want to use it with a deployed tomcat, as it will likely output the logs twice (once like normal in openbravo.log, and a second time in catalina.out (which is redirected console)). So we most likely want to only add the ConsoleAppender but do not activate it by default.
(0019058)
jpabloae   
2009-08-19 14:38   
Yes, adding this by default would be overkill for production usage.

Rafa: what do you think if we added this commented in the file?
(0019063)
shuehner   
2009-08-19 14:57   
Added proposed change. Add ConsoleAppender config by default, but do not enable it
(0019202)
hgbot   
2009-08-24 19:26   
Repository: erp/devel/pi
Changeset: 00480773b8bf9985f47e1d75c870b6eb5bd515cf
Author: Juan Pablo Aroztegi <juanpablo.aroztegi <at> openbravo.com>
Date: Mon Aug 24 19:25:31 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/00480773b8bf9985f47e1d75c870b6eb5bd515cf [^]

Fixes issue 10329: Add optional ConsoleAppender to display logs in Eclipse

---
M config/log4j.lcf.template
---
(0021816)
plujan   
2009-11-13 16:36   
Not verified by QA since it has no functional impact on the ERP