You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Hearty <he...@gmail.com> on 2008/11/13 15:40:08 UTC
Slf4j for java.util.logging fails to create logs
I am using apache geronimo as application server and the jar file I've used
is slf4j-jdk14-1.5.0.jar,slf4j-api-1.5.0.jar,log4j-1.1.3.jar
My logging.properties file is as follows
handlers = java.util.logging.FileHandler, java.util.logging.ConsoleHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
java.util.logging.FileHandler.level = ALL
# Naming style for the output file:
# (The output file is placed in the directory
# defined by the "user.home" System property.)
java.util.logging.FileHandler.pattern=%h/java%u.log
# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
com.telelogic.focalpoint.level = INFO
com.telelogic.focalpoint.dao.jdbc.Jdbc.level = OFF
com.telelogic.focalpoint.dao.ViewExecutor.level = OFF
org.apache.catalina.level = INFO
org.springframework.level = INFO
net.sf.ehcache.distribution.level = INFO
My logging.properties is under WEB-INF/classes folder
Please advise me where I went wrong?
--
View this message in context: http://www.nabble.com/Slf4j-for-java.util.logging-fails-to-create-logs-tp20481626s134p20481626.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Slf4j for java.util.logging fails to create logs
Posted by Jarek Gawor <jg...@gmail.com>.
What API is your application using to log its messages? sl4j,
commons-logging, java.util.logging, or log4j?
Jarek
On Thu, Nov 13, 2008 at 9:40 AM, Hearty <he...@gmail.com> wrote:
>
> I am using apache geronimo as application server and the jar file I've used
> is slf4j-jdk14-1.5.0.jar,slf4j-api-1.5.0.jar,log4j-1.1.3.jar
>
> My logging.properties file is as follows
>
>
> handlers = java.util.logging.FileHandler, java.util.logging.ConsoleHandler
>
> ############################################################
> # Handler specific properties.
> # Describes specific configuration info for Handlers.
> ############################################################
>
> java.util.logging.FileHandler.level = ALL
>
> # Naming style for the output file:
> # (The output file is placed in the directory
> # defined by the "user.home" System property.)
> java.util.logging.FileHandler.pattern=%h/java%u.log
>
>
> # Number of output files to cycle through, by appending an
> # integer to the base file name:
> java.util.logging.FileHandler.count=1
>
>
> java.util.logging.ConsoleHandler.level = FINE
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
> com.telelogic.focalpoint.level = INFO
> com.telelogic.focalpoint.dao.jdbc.Jdbc.level = OFF
> com.telelogic.focalpoint.dao.ViewExecutor.level = OFF
> org.apache.catalina.level = INFO
> org.springframework.level = INFO
> net.sf.ehcache.distribution.level = INFO
>
> My logging.properties is under WEB-INF/classes folder
>
>
> Please advise me where I went wrong?
> --
> View this message in context: http://www.nabble.com/Slf4j-for-java.util.logging-fails-to-create-logs-tp20481626s134p20481626.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>