Logging documentation

2012-07-05 Thread AndyG
This is driving me crazy. I cannot for the life of me work out how to configure 'default' logging for a simple test. Let's pick an example - simple-singleton. How to I override console logging for that? I just want to debug from 'org.apache.openejb' and up. How do I do it? No matter what I try

Re: Logging documentation

2012-07-05 Thread Romain Manni-Bucau
did you try logging.level.OpenEJB=FINE? - Romain 2012/7/5 AndyG andy.gumbre...@orprovision.com This is driving me crazy. I cannot for the life of me work out how to configure 'default' logging for a simple test. Let's pick an example - simple-singleton. How to I override console logging

Re: Logging documentation

2012-07-05 Thread AndyG
than info? What do I need to change, create or modify to get it do this without adding log4j? Please, an idiots guide would be nice. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-documentation-tp4656042p4656045.html Sent from the OpenEJB Dev mailing list archive

Re: Logging documentation

2012-07-05 Thread Romain Manni-Bucau
this without adding log4j? Please, an idiots guide would be nice. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-documentation-tp4656042p4656045.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: Logging documentation

2012-07-05 Thread AndyG
Thanks dude! That does the trick :-) -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-documentation-tp4656042p4656047.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Fwd: [jira] [Created] (TOMEE-133) TomEE logs/openejb.log should be merged with the rest of Tomcat logging

2012-01-30 Thread Romain Manni-Bucau
Isnt it the case on trunk? -- Message transféré -- De : David Blevins (Created) (JIRA) j...@apache.org Date : 31 janv. 2012 01:19 Objet : [jira] [Created] (TOMEE-133) TomEE logs/openejb.log should be merged with the rest of Tomcat logging À : comm...@openejb.apache.org TomEE logs

Re: Logging

2012-01-28 Thread Mark Struberg
folks, we face a very similar problem in DeltaSpike, OWB and MyFaces (OpenJPA has it's own logging as well). I'm not sure if this doesn't qualify to build a commons-logging-3.0 or so :) LieGrue, strub - Original Message - From: David Blevins david.blev...@gmail.com To: dev

Re: Logging

2012-01-28 Thread Romain Manni-Bucau
, we face a very similar problem in DeltaSpike, OWB and MyFaces (OpenJPA has it's own logging as well). I'm not sure if this doesn't qualify to build a commons-logging-3.0 or so :) LieGrue, strub - Original Message - From: David Blevins david.blev...@gmail.com To: d...@openejb.ap...

Re: Logging

2012-01-27 Thread Romain Manni-Bucau
I will find time for a descriptive article on how I am successfully using OpenEJB in a real world high volume AOI scenario!!! Andy. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-tp4318587p4332775.html Sent from the OpenEJB Dev mailing list archive

Re: Logging

2012-01-27 Thread David Blevins
there'd still be a step for adding it. Two possible solutions there: 1) Find some way to easily add log4j either via another server binary or via network install at startup. 2) Find a way to easily get the log output of JULI to match the existing logging so you could switch. I am curious

Re: Logging

2012-01-26 Thread Romain Manni-Bucau
normally the default logging should simply be a JUL logging. the only modification is if you don't override OpenEJB root loggers (OpenEJB, Transaction...) the handler (=appender) is changed to look like the old noe in embedded mode (=not standalone tomee). As David said he restored the old log4j

Re: Logging

2012-01-26 Thread David Blevins
On Jan 26, 2012, at 10:08 AM, Romain Manni-Bucau wrote: normally the default logging should simply be a JUL logging. the only modification is if you don't override OpenEJB root loggers (OpenEJB, Transaction...) the handler (=appender) is changed to look like the old noe in embedded mode

Re: Logging

2012-01-26 Thread David Blevins
On Jan 26, 2012, at 12:47 PM, David Blevins wrote: On Jan 26, 2012, at 10:08 AM, Romain Manni-Bucau wrote: normally the default logging should simply be a JUL logging. the only modification is if you don't override OpenEJB root loggers (OpenEJB, Transaction...) the handler (=appender

Re: Logging

2012-01-26 Thread AndyG
in a real world high volume AOI scenario!!! Andy. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-tp4318587p4332775.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: Logging

2012-01-25 Thread AndyG
So how about some info about how to configure the 'new' logging - I don't really care what logging is used as long as when it changes there is a little info for those using the 'old' logging. I just built and dropped in the jars onto my standalone test server (which I do at least once a week

Re: Logging

2012-01-25 Thread David Blevins
Thanks for the gentle but firm email :) Just the right balance. On Jan 25, 2012, at 2:36 AM, AndyG wrote: So how about some info about how to configure the 'new' logging - I don't really care what logging is used as long as when it changes there is a little info for those using the 'old

Re: Logging

2012-01-23 Thread Romain Manni-Bucau
and removing our default configs (jul + lo4j)? These confs sucks since it is never what the user wants and it hides a big part of the whole logging. Ill have a try tonight, shout if you see any issue with it. So how does one re enable the old logging if they happened to like it? Looks

Logging

2012-01-22 Thread Romain Manni-Bucau
Hi, What about using jul by default and removing our default configs (jul + lo4j)? These confs sucks since it is never what the user wants and it hides a big part of the whole logging. Ill have a try tonight, shout if you see any issue with it. - Romain

Re: Logging

2012-01-22 Thread David Blevins
On Jan 22, 2012, at 8:35 AM, Romain Manni-Bucau wrote: Hi, What about using jul by default and removing our default configs (jul + lo4j)? These confs sucks since it is never what the user wants and it hides a big part of the whole logging. Ill have a try tonight, shout if you see any

Re: Logging

2012-01-22 Thread David Blevins
logging. Ill have a try tonight, shout if you see any issue with it. So how does one re enable the old logging if they happened to like it? Looks like it's been removed. I'm happy to see change and getting some ability to better work with JULI is great. I really would like to maintain some

Re: Logging

2012-01-22 Thread David Blevins
the user wants and it hides a big part of the whole logging. Ill have a try tonight, shout if you see any issue with it. So how does one re enable the old logging if they happened to like it? Looks like it's been removed. I'm happy to see change and getting some ability to better work

Re: Logging

2012-01-22 Thread David Blevins
(jul + lo4j)? These confs sucks since it is never what the user wants and it hides a big part of the whole logging. Ill have a try tonight, shout if you see any issue with it. So how does one re enable the old logging if they happened to like it? Looks like it's been removed. I'm happy

Logging broken?

2011-12-06 Thread AndyG
Does anyone know what has changed on the logging front to break logging - Using standalone server. Does not even create the 'openejb.log' anymore? -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-broken-tp4164685p4164685.html Sent from the OpenEJB Dev mailing list

Re: Logging broken?

2011-12-06 Thread AndyG
. Check for slf4j and use, 5. Else use either log4j or JUL. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-broken-tp4164685p4165079.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: Logging broken?

2011-12-06 Thread Romain Manni-Bucau
if not overridden, 3. Else, check for JUL and configure if not overridden, 4. Check for slf4j and use, 5. Else use either log4j or JUL. -- View this message in context: http://openejb.979440.n4.nabble.com/Logging-broken-tp4164685p4165079.html Sent from the OpenEJB Dev mailing list archive

2 Issued with logging

2011-07-06 Thread mclu
Hi. While trying to delegate logging to our internal logger while using OpenEJB the embedded way I saw 2 issues in the code of 3.1.4 1. Issue: At ReadDescriptors.java there is a System out that should be replaced by normal logging: System.out.println(FOO moduleName = + moduleName); 2. Issue

Re: 2 Issued with logging

2011-07-06 Thread Jean-Louis MONTEIRO
...@markuslutum.de Hi. While trying to delegate logging to our internal logger while using OpenEJB the embedded way I saw 2 issues in the code of 3.1.4 1. Issue: At ReadDescriptors.java there is a System out that should be replaced by normal logging: System.out.println(FOO moduleName = + moduleName); 2

Re: 2 Issued with logging

2011-07-06 Thread Romain Manni-Bucau
1) isn't it fixed on the repo? (trunk + 3.2 branch) 2) i'm not opposed to it ;) - Romain 2011/7/6 mclu m...@markuslutum.de Hi. While trying to delegate logging to our internal logger while using OpenEJB the embedded way I saw 2 issues in the code of 3.1.4 1. Issue

Logging errors

2008-11-13 Thread Jarek Gawor
to changes made as part of OPENEJB-918 which changed how logging is made. I reopened the bug and provided some more details. I also attached a patch to the bug that fixes these problems. I was hoping somebody could apply the patch and publish a new snapshot of OpenEJB. Thanks, Jarek

Re: Logging errors

2008-11-13 Thread David Jencks
:53) at org.apache.openejb.util.Logger.formatMessage(Logger.java: 185) at org.apache.openejb.util.Logger.error(Logger.java:276) I tracked down the problem to changes made as part of OPENEJB-918 which changed how logging is made. I reopened the bug and provided some more details. I

Question on Transaction Logging and recovery. David Jencks and Blevins pls read.

2007-09-22 Thread Manu George
Hi, I was investigating GERONIMO-3354. Found that the exception getting thrown was due to an XAResource getting passed to the the geronimo transaction manager instead of a NamedXAResource .So I made this change. Since I am a novice in this area, I had a chat with Dain. The main points of

Re: i18n and logging

2007-08-21 Thread Jacek Laskowski
On 8/21/07, Karan Malhi [EMAIL PROTECTED] wrote: Is there a way where I can get rid of my previous patch from the issue? Yes, there is. Let us know what the patch you're at and it will be wiped out. Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl

Re: i18n and logging

2007-08-21 Thread Karan Malhi
https://issues.apache.org/jira/browse/OPENEJB-667 Thanks !! On 8/21/07, Jacek Laskowski [EMAIL PROTECTED] wrote: On 8/21/07, Karan Malhi [EMAIL PROTECTED] wrote: Is there a way where I can get rid of my previous patch from the issue? Yes, there is. Let us know what the patch you're at and

Re: i18n and logging

2007-08-21 Thread Karan Malhi
Yes, I remember posting multiple patches for a couple of issues when I joined this project ;). On 8/21/07, Jacek Laskowski [EMAIL PROTECTED] wrote: On 8/21/07, Karan Malhi [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/OPENEJB-667 Done (I was worried there might've been more

Re: i18n and logging

2007-08-08 Thread Karan Malhi
Here is what could be added to the getLogger(String child) method public Logger getLogger(String child){ Logger child = // create child logger here; this.debug(Created Logger + child.logCategory.getName(), this.baseName); } Oops!! the code should be: public Logger

Re: i18n and logging

2007-08-08 Thread David Blevins
and the DirectoryMonitor you wrote for that). I could not find that code depicting this behaviour in OpenEJB for Logging. Sorry, your option 3 is what i meant -- on startup when we read the config files. I'm attempting to document some of these behaviors here: http://svn.apache.org/repos/asf

Re: i18n and logging

2007-08-07 Thread Karan Malhi
be useful in troubleshooting any logging issues. So where would we put this diff feature? I was thinking , it could be a part of WebAdmin. What do you guys think about the above? -- Karan Singh Malhi

Re: i18n and logging

2007-08-07 Thread David Blevins
not all Logger Categories need to be defined in log4j configuration because the level and appenders can be inherited from parent Loggers, the diff tool could be useful in troubleshooting any logging issues. So where would we put this diff feature? I was thinking , it could be a part of WebAdmin. We

Re: i18n and logging

2007-08-06 Thread Karan Malhi
We should just go with logging.properties for the one that will be squirted into conf/ directory for the standalone server. For anything embedded (could be more than just tests) we could just go simple and call it embedded.logging.properties. I'll make the changes For the embedded one, we'd

Re: i18n and logging

2007-08-04 Thread David Jencks
wasn't sure on what needs to be done because of different types of logging frameworks and that I do not know enough to tell which logging framework is better. I was just waiting for a concrete decision on this topic and wanted to get this issue resolved so that I could start work on some

Re: i18n and logging

2007-08-04 Thread Karan Malhi
I hope I have understood what you meant by a monitor approach instead of direct logging. If I am on the wrong track here, please correct me. My understanding of a monitor approach is that each component in the application is given a Monitor Impl, using Dependency Injection mechanism

Re: i18n and logging

2007-08-01 Thread David Blevins
types of logging frameworks and that I do not know enough to tell which logging framework is better. I was just waiting for a concrete decision on this topic and wanted to get this issue resolved so that I could start work on some documentation stuff. Well, we'll need to support log4j

Re: i18n and logging

2007-08-01 Thread Karan Malhi
But I suppose if we had each logger return the formatted message it could still be fine, such as: String msg = logger.fatal(config.noContainerFound, d.getContainerId(), d.getEjbName()); throw new OpenEJBException(msg); This is a nice idea !! . -- Karan Singh Malhi

Re: i18n and logging

2007-07-30 Thread Karan Malhi
, it is looked up in the parent package and so on. On 7/27/07, David Jencks [EMAIL PROTECTED] wrote: On Jul 27, 2007, at 4:20 PM, Karan Malhi wrote: So I have re-written logging using java.util.Logging. Is there general agreement this is a good idea? I have yet to talk in person to anyone who

Re: i18n and logging

2007-07-27 Thread Karan Malhi
So I have re-written logging using java.util.Logging. There are some issues which are blockers right now 1. The logging levels are different between log4j and java.util.logging. Can anybody suggest how these should be mapped 2. Most of the logging being done right now is not using

Re: i18n and logging

2007-07-27 Thread David Jencks
On Jul 27, 2007, at 4:20 PM, Karan Malhi wrote: So I have re-written logging using java.util.Logging. Is there general agreement this is a good idea? I have yet to talk in person to anyone who likes java.util.Logging. There are some issues which are blockers right now 1. The logging

Re: i18n and logging

2007-07-27 Thread Karan Malhi
file of a sub-package, it is looked up in the parent package and so on. On 7/27/07, David Jencks [EMAIL PROTECTED] wrote: On Jul 27, 2007, at 4:20 PM, Karan Malhi wrote: So I have re-written logging using java.util.Logging. Is there general agreement this is a good idea? I have yet to talk

Re: i18n and logging

2007-06-24 Thread Karan Malhi
of finding a property and just caching that property. This will make sure we dont hit the same properties file twice. On 6/21/07, David Blevins [EMAIL PROTECTED] wrote: There have been a couple things I thought would be neat additions for the i18n side of our logging code. Basically

Logging strategy -- help!!

2007-06-21 Thread Karan Malhi
. This is when we call the Logger.initialize() method which then uses Log4jConfigUtils, which in turn tries to configure logging based on the default.logging.conf. There are two instances in our code where we make use of Logger.initialize() before we get to the Logger instance (through Logger.getInstance

Re: Logging strategy -- help!!

2007-06-21 Thread David Blevins
logger instances on our own. There are two instances where we might be using the configuration defined in default.logging.conf files. This is when we call the Logger.initialize() method which then uses Log4jConfigUtils, which in turn tries to configure logging based on the default.logging.conf