dev@javaserverfaces.java.net

Re: Setting JSF 1.2 logging level

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 04 Dec 2008 08:59:42 -0800

Ralph Bunker wrote:
> How can I set the logging level to FINE in JSF 1.2? I would like to
> see messages like:
> if (LOGGER.isLoggable(Level.FINE)) {
> LOGGER.log(Level.FINE,
> MessageFormat.format(
> "ConfigureListener.contextInitialized({0})",
> getServletContextIdentifier(context)));
>
> I think this has something to do with setting the
> java.util.logging.config.file system property to point to a
> logging.properties file. However, I do not want to hard-code the path
> to the properties file. I would like it to be in the WEB-INF directory
> of the application. And I would like it to be independent of the
> container that I am using.
>
> thanks,
> --ralph
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
I've only configured logging via the java.util.logging.config.file
system property.

I'd recommend you review the logging documentation [1] for other options.

[1] http://java.sun.com/j2se/1.5.0/docs/api/