Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-09-07 Thread Jacek Laskowski
On 9/6/07, David Blevins <[EMAIL PROTECTED]> wrote: > Cool. I've updated the Geronimo side as follows: ...and I've created a page about how the OpenEJB-Geronimo integration works in Geronimo Wiki [1] where I expect to find information on openejb.logger.external as well (I purposely wrote 'I expec

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-09-06 Thread David Blevins
Cool. I've updated the Geronimo side as follows: Index: src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java === --- src/main/java/org/apache/geronimo/openejb/ OpenEjbSystemGBean.java (revision 570242) +++ src/main/j

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-09-06 Thread Karan Malhi
Yes it should work. On 9/6/07, David Blevins <[EMAIL PROTECTED]> wrote: > > On Sep 6, 2007, at 9:04 AM, Karan Malhi wrote: > > > This is because Geronimo also uses the same classes as we use in > > embedded mode. So it will not be possible to set the SystemProperty > > there. For example, OpenEjbS

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-09-06 Thread David Blevins
On Sep 6, 2007, at 9:04 AM, Karan Malhi wrote: This is because Geronimo also uses the same classes as we use in embedded mode. So it will not be possible to set the SystemProperty there. For example, OpenEjbSystemGBean also uses SystemInstance, but our code also uses SystemInstance heavily. So

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-09-06 Thread Karan Malhi
Can we ask the Geronimo team to set it in the org.apache.geronimo.openejb.OpenEjbSystemGBean class. This is because Geronimo also uses the same classes as we use in embedded mode. So it will not be possible to set the SystemProperty there. For example, OpenEjbSystemGBean also uses SystemInstance,

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-30 Thread Karan Malhi
Okay, Will implement it with openejb.logging.external=true/false. On 8/30/07, David Blevins <[EMAIL PROTECTED]> wrote: > > On Aug 29, 2007, at 6:12 PM, Karan Malhi wrote: > > > Or maybe in one of the very first OpenEJB methods called by Geronimo > > to start openejb in embedded mode we could add

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-30 Thread David Blevins
On Aug 29, 2007, at 6:12 PM, Karan Malhi wrote: Or maybe in one of the very first OpenEJB methods called by Geronimo to start openejb in embedded mode we could add some code like System.setProperty("openejb.logging","external"); the first time the Logger class is loaded, we check for this pro

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-29 Thread Karan Malhi
Or maybe in one of the very first OpenEJB methods called by Geronimo to start openejb in embedded mode we could add some code like System.setProperty("openejb.logging","external"); the first time the Logger class is loaded, we check for this property and if it has a value of external, then we do

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-29 Thread Karan Malhi
Just thinking, could we do something with a Thread Context, i.e. if it is an App Server Thread Context, then we do not use embedded.logging.properties file, if it is an OpenEJB thread context which is trying to access the Logger, then if we go with our existing strategy. I dont even know what I am

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-29 Thread Karan Malhi
The only way I know of is to do something like Logger openejb = Logger.getInstance(LogCategory.OPENEJB, Foo.class); boolean configured = openejb.getAllAppenders().hasMoreElements(); If there is an appender for OPENEJB then configured will be true and we will know that OPENEJB was configured expl

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-29 Thread David Blevins
On Aug 28, 2007, at 7:35 PM, Karan Malhi wrote: I dont even think they can change log levels. We used the logic that - if conf is present - use logging.properties - if conf is present - logging.properties is absent- install logging.properties and use it - if conf is absent, assume embedded and

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-28 Thread Karan Malhi
I dont even think they can change log levels. We used the logic that - if conf is present - use logging.properties - if conf is present - logging.properties is absent- install logging.properties and use it - if conf is absent, assume embedded and use embedded.logging.properties which is available i

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-28 Thread David Blevins
On Aug 27, 2007, at 4:25 PM, Karan Malhi wrote: How do the users of geronimo set log levels? Should be through the log4 files in the /var/log directory of the install. -David On 8/27/07, David Blevins (JIRA) <[EMAIL PROTECTED]> wrote: Verify log levels can be changed for openejb relat

Re: [jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-27 Thread Karan Malhi
How do the users of geronimo set log levels? On 8/27/07, David Blevins (JIRA) <[EMAIL PROTECTED]> wrote: > Verify log levels can be changed for openejb related log categories > --- > > Key: GERONIMO-3445 >

[jira] Created: (GERONIMO-3445) Verify log levels can be changed for openejb related log categories

2007-08-27 Thread David Blevins (JIRA)
Verify log levels can be changed for openejb related log categories --- Key: GERONIMO-3445 URL: https://issues.apache.org/jira/browse/GERONIMO-3445 Project: Geronimo Issue Type: