Issue Details (XML | Word | Printable)

Key: OPENEJB-675
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: karan singh malhi
Reporter: karan singh malhi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenEJB

Add support for logging being configured externally

Created: 07/Sep/07 05:39 AM   Updated: 27/Sep/07 04:28 AM
Return to search
Component/s: None
Affects Version/s: 3.0-beta-1
Fix Version/s: 3.0-beta-1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works OpenEJB-675.patch 2007-09-07 05:44 AM karan singh malhi 1 kB

Resolution Date: 11/Sep/07 03:42 PM


 Description  « Hide
Currently Geronimo users find it difficult to configure logging for OpenEJB categories. Modify Logger to add support for external configuration of logging

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
karan singh malhi added a comment - 07/Sep/07 05:44 AM
Modified o.a.o.util.Logger to check for a system property named "openejb.logger.external".

If this property is false, then configure logging according to OpenEJB's internal rules of configuration

If this property is true, then do nothing i.e. just assume that the external software (e.g. Geronimo) set the log4j.configuration property to the appropriate properties file. The LogManager will automatically configure itself based on the properties file set by the log4j.configuration system property i.e. the default behaviour of log4j.

karan singh malhi added a comment - 11/Sep/07 03:42 PM
Tested this and works fine. Will wait for anybody to report any problems, otherwise will close the issue next week