You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Goodenough <da...@btconnect.com> on 2006/05/30 14:32:13 UTC

Is there any documentation of JULI anywhere?

I am trying to work out how to tailor the log entries going into the Catalina
log files, and am having no luck at all.  

I am using Tomcat 5.5.17.

I have looked around for documentation of JULI, but I can find nothing 
which makes sense.  There is a comment at the end of the logging,properties
file which says there should be a example of exactly the type I want.  It 
says:-

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE

but as you can see this never mentions SEVERE in the sample
lines, only FINE.  Also it does not mention com.xyz.foo in the
sample lines.

There was a mention that Google found that said that there was
some documentation in the JULI source, but I do not know where
in the Tomcat source tree JULI is to be found, and there is an 
awful lot to search.

Please, does anyone know how to do this, it is causing me
real grief.

Thanks

David

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Is there any documentation of JULI anywhere?

Posted by David Goodenough <da...@btconnect.com>.
On Tuesday 30 May 2006 13:32, David Goodenough wrote:
> I am trying to work out how to tailor the log entries going into the
> Catalina log files, and am having no luck at all.
>
> I am using Tomcat 5.5.17.
>
> I have looked around for documentation of JULI, but I can find nothing
> which makes sense.  There is a comment at the end of the logging,properties
> file which says there should be a example of exactly the type I want.  It
> says:-
>
> # For example, set the com.xyz.foo logger to only log SEVERE
> # messages:
> #org.apache.catalina.startup.ContextConfig.level = FINE
> #org.apache.catalina.startup.HostConfig.level = FINE
> #org.apache.catalina.session.ManagerBase.level = FINE
>
> but as you can see this never mentions SEVERE in the sample
> lines, only FINE.  Also it does not mention com.xyz.foo in the
> sample lines.
>
> There was a mention that Google found that said that there was
> some documentation in the JULI source, but I do not know where
> in the Tomcat source tree JULI is to be found, and there is an
> awful lot to search.
>
> Please, does anyone know how to do this, it is causing me
> real grief.
>
> Thanks
>
> David

Well I have made a little progress, but I do not understand what
it going on.

Putting the lines:-

org.jgroups.level = ERROR
org.jgroups.handlers = 1catalina.org.apache.juli.FileHandler

into logging.properties (you need both) has the effect of stopping
the messages going onto the Console (which is redirected to 
Catalina.out) but does NOT change what goes to the 
catalina.{date}.log files.  As I said the handler was the file
handler (which is what generates catalina.{date}.log) and
not to the ConsoleHandler (which sends the output to 
catalina.out) I am completely confused.

How is it that something as important as the logging for
Tomcat is so badly documented?

David

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org