2015-07-08 1:42 GMT+03:00 Jugma Bora <jugma.b...@luitporia.com>:
> Hi,
>
> I am using Tomcat 8.0.18. I trying to log only SEVERE level logging
> messages to the console from my web application. But I still get INFO
> level logging messages. Below is my logging.properties file that is
> deployed in WEB-INF/classes directory. Please can you help.
>
> Thank you,
> Jugma
>
> ############################################################
>
> handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

Where is ".handlers" property?

The FileHandler and ConsoleHandler handlers are created and
configured, but no log output goes to them, as they are not linked to
any logger.

> ############################################################
> # Handler specific properties.
> # Describes specific configuration info for Handlers.
> ############################################################
>
> org.apache.juli.FileHandler.level = SEVERE
> org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> org.apache.juli.FileHandler.prefix = ${classloader.DecisionEngine}
>
> java.util.logging.ConsoleHandler.level = SEVERE
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
>
>

You say you that you placed your configuration file into
WEB-INF/classes, so you are trying to configure this feature for your
web application only?  Note that this does not affect logging from
system classes that are created by a different class loader.

If you want to suppress non-severe messages from a webapp, it would be
better to use ".level=SEVERE".  This skips generating the messages, as
opposed to filtering unwanted messages before writing them out.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to