cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Baldwin <>
Subject Re: Cayenne logging
Date Fri, 12 Jun 2009 13:43:28 GMT

I did quite a few tests yesterday and still cannot determine whether  
the Tomcat method will ever work.

The directives that seem to work are as follows:

	handlers = org.apache.juli.FileHandler = ${catalina.base}/logs
	org.apache.juli.FileHandler.prefix = mywebapp.
	org.apache.juli.FileHandler.level = WARN

The last line will turns off all logging.  If this is changed to  
"INFO" then logging is turned on.  However, I cannot get the cayenne  
"QueryLogger", "conf", or "util" directives to work.  It may be my  
syntax (using juli), or it may be that Tomcat juli will not  
disseminate the directives, or it may be that it just cannot be done  
with juli


On Jun 12, 2009, at 2:12 AM, Andrus Adamchik wrote:

> On Jun 11, 2009, at 11:05 PM, Joe Baldwin wrote:
>> Question:
>> Is is possible that the Cayenne hard-coded defaults (which I read  
>> about somewhere in your docs), are over-riding my
> Actually no. Cayenne (or your application code) would log something  
> with a certain priority. A logging framework decides whether a given  
> priority should be logged or ignored. I have very little experience  
> with the new Tomcat "juli" logger. So another random thing to try:  
> instead of OFF, can you try WARN (Cayenne logs everything with level  
> INFO, so WARN should suppress the logging).
> Andrus

View raw message