I don't know anything about juli. Is your logging.properties file a
valid log4j configuration file? I don't recognize the syntax
offhand. The ApplicationLog4jConfigurationGBean only configures log4j.
BTW you might want to use a different directory as var/directory is
used by the geronimo apacheds plugin to store apache directory related
files.
thanks
david jencks
On Oct 31, 2008, at 1:49 AM, Hearty wrote:
I am using slf4j and juli for logging. I am not able to see the logs
creating
for my application.
I have specified the entry in geromino-web.xml as
<sys:gbean name="FPLogger"
class
=
"org
.apache
.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean">
<sys:attribute
name="log4jFile">var/directory/logging.properties</sys:attribute>
<sys:reference
name="ServerInfo"><name>ServerInfo</name></sys:reference>
</sys:gbean>
and my logging.properties is as follows
handlers = org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
org.apache.juli.FileHandler.level = ALL
org.apache.juli.FileHandler.directory =
${org.apache.geronimo.server.dir}/var/logs
org.apache.juli.FileHandler.prefix = fp.
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
Please advise me where I went wrong?
Thanks in advance.
--
View this message in context:
http://www.nabble.com/Logging-framework-using-slf4j-and-juli-tp20261950s134p20261950.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.