On Nov 3, 2008, at 12:39 AM, Hearty wrote:


If I want to use the slf4j and juli based logging, what is the class I need
to use instead of
ApplicationLog4jConfigurationGBean.

I have no idea how juli works. I would imagine you will have to figure out and write whatever code is necessary to use it. AFAIK there is no juli support in geronimo. I suspect but don't know that our embedded tomcat is configured to have juli use either log4j or commons-logging (branches/2.1) or slf4j (trunk), but I have never found this bit of configuration.

thanks
david jencks





djencks wrote:

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.





--
View this message in context: 
http://www.nabble.com/Logging-framework-using-slf4j-and-juli-tp20261950s134p20298953.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to