You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ope <op...@yahoo.com> on 2002/07/14 09:14:07 UTC

Trouble with Logger.Helper

I am trying to work with the Tomcat Logging facilities
but am having trouble with the verbosity settings.  I
know its something simple but I just can't find out
what I am doing wrong.  The problem is that every
logging message gets written to the logs no matter
what verbosity I have set in server.xml.

Weaving my way through the docs I have come up with a
configuration like this:

In server.xml I have this Logger defined for myapp:
<Logger className=
"org.apache.catalina.logger.FileLogger"
verbosity="0" 
prefix="myapp." suffix=".log" timestamp="true"/>

In my servlet I have defined a logger like this:
Logger.Helper logger = new Logger.Helper("myappLog",
this);

Then in the code I have logger messages defined like
this:
logger.log("SQL Exception", sqlex, Logger.FATAL);


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>