Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

log verbosity in tomcat

Beloglazov Maksim

2004-04-23


Hello,

I tried to increase log verbosity in server.xml file by setting debug
attribute of Engine and Realm tags to 99. Verbosity of Logger I set to
4. But still only INFO messages are displayed in the log file while
Jakarta docs says that

  * "Debugging and exception messages logged by this |Realm| will be
   recorded by the |Logger| that is associated with our surrounding
   |Context|, |Host|, or |Engine|"
  * "Verbosity attribute is the verbosity level for this logger.
   Messages with a higher verbosity level than the specified value
   will be silently ignored. Available levels are 0 (fatal messages
   only), 1 (errors), 2 (warnings), 3 (information), and 4 (debug).
   If not specified, the default value will be 1 (error)".

I have inspected the JAASRealm.java file and found that it uses
log.debug() call for logging, but I can't see any of these messages in
an actual log files! Google says nothing on this.

server.xml:
...
  <Engine name="Catalina" defaultHost="localhost" debug="99">
   <!--
   <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
   -->
   <!-- Global logger unless overridden at lower levels -->
   <Logger className="org.apache.catalina.logger.FileLogger"
        prefix="catalina_log." suffix=".txt"
        timestamp="true"
        verbosity="4"/>
   <!-- Because this Realm is here, an instance will be shared
globally -->
   <!-- This Realm uses the UserDatabase configured in the global JNDI
      resources under the key "UserDatabase". Any edits
      that are performed against this UserDatabase are immediately
      available for use by the Realm. -->
   <Realm className="org.apache.catalina.realm.JAASRealm" debug="99"
appName="merx" userClassNames="ru.mb.security.jaas.RdbmsPrincipal
      roleClassNames="ru.mb.security.jaas.RdbmsRole" />
    ....
  </Engine>
...
Is there any way to increase verbosity of logging?
Thanks in advance,

Beloglazov Maksim
©2008 junlu.com - Jax Systems, LLC, U.S.A.