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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to