geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <>
Subject Re: How to configure slf4j with apache geronimo
Date Wed, 05 Nov 2008 22:47:02 GMT

One cannot configure slf4j, only the logging framework it uses. You don't
need the jars you cited, they are provided by Geronimo. 
As for configuring log4j, its done by var/log/

See my question in the posting "Logging-Framework for applications?" and the
resulting discussion a few days ago.

Hearty wrote:
> I am using apache geronimo. When I've tried to deploy my application (war
> file) and try to run the application my logs are not creating under the
> specified location.
> I am using slf4j internally. The following jar files are specified under
> web-inf/lib location of my application.
> slf4j-api-1.5.0.jar,slf4j-log4j12-1.4.3.jar,log4j-1.2.14.jar.
> I have put under web-inf/lib as well as web-inf/classes
> folders
> My is as follows
> log4j.rootLogger=INFO, logFile
> log4j.appender.logFile=org.apache.log4j.RollingFileAppender
> log4j.appender.logFile.File=C:/tmp/logs/fp.log
> log4j.appender.logFile.layout=org.apache.log4j.PatternLayout
> log4j.appender.logFile.layout.ConversionPattern=%d{dd/MM/yy HH:mm:ss} %-5p
> [%t] %c{2} - %m%n
> log4j.appender.logFile.MaxFileSize=1000KB
> The logs are not creating under the location mentioned in
> I am also hiding the jar files in geronimo-web.xml
> using <hidden-classes> tag [which avoid the loading classes from the
> parent class loader]
> I am getting the following warning message in server console
> log4j:WARN No appenders could be found for logger
> (org.springframework.web.conte
> xt.ContextLoader).
> log4j:WARN Please initialize the log4j system properly.
> Please advise how to fix this issue.
> Thanks in advance

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message