You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ramya K Grama <ra...@gmail.com> on 2009/06/04 21:44:41 UTC
Fwd: Log4J axis2.log file is empty
Hi there,
I am trying to setup log4j logging in my axis2 web service running on Tomcat
5.5.
The jars are in the right place.
However, the axis2.log file that gets created is empty with no contents.
My log4j.properties file is:
log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d [%p] %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.MaxBackupIndex=1
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
Any help is highly appreciated.
Thanks,
RG
Re: Log4J axis2.log file is empty
Posted by Curt Arnold <ca...@apache.org>.
On Jun 4, 2009, at 2:44 PM, Ramya K Grama wrote:
> Hi there,
>
> I am trying to setup log4j logging in my axis2 web service running
> on Tomcat
> 5.5.
>
> The jars are in the right place.
>
>
>
> However, the axis2.log file that gets created is empty with no
> contents.
>
>
>
> My log4j.properties file is:
>
> log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
>
>
>
> # Set the enterprise logger priority to FATAL
>
> log4j.logger.org.apache.axis2.enterprise=FATAL
>
> log4j.logger.de.hunsicker.jalopy.io=FATAL
>
> log4j.logger.httpclient.wire.header=FATAL
>
> log4j.logger.org.apache.commons.httpclient=FATAL
>
>
An empty log file would be consistent with the appender being properly
set up, but no logging requests either being made or getting through
the thresholds and filters. You set very high thresholds on several
loggers, any chance that is successful in stopping all logging? What
happens when you remove or lower the thresholds? If that doesn't fix
things, are you sure that there are logging requests being made.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Log4J axis2.log file is empty
Posted by Greg Stasica <gs...@googlemail.com>.
hi,
have you tried to change log level to something like: DEBUG or even TRACE
for org.apache.axis2.... ?
On Thu, Jun 4, 2009 at 8:44 PM, Ramya K Grama <ra...@gmail.com> wrote:
>
> Hi there,
>
> I am trying to setup log4j logging in my axis2 web service running on
> Tomcat 5.5.
>
> The jars are in the right place.
>
>
>
> However, the axis2.log file that gets created is empty with no contents.
>
>
>
> My log4j.properties file is:
>
> log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
>
>
>
> # Set the enterprise logger priority to FATAL
>
> log4j.logger.org.apache.axis2.enterprise=FATAL
>
> log4j.logger.de.hunsicker.jalopy.io=FATAL
>
> log4j.logger.httpclient.wire.header=FATAL
>
> log4j.logger.org.apache.commons.httpclient=FATAL
>
>
>
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
>
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
>
> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.CONSOLE.layout.ConversionPattern=%d [%p] %m%n
>
>
>
> # LOGFILE is set to be a File appender using a PatternLayout.
>
> log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
>
> log4j.appender.LOGFILE.File=axis2.log
>
> log4j.appender.LOGFILE.Append=true
>
> log4j.appender.LOGFILE.MaxBackupIndex=1
>
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
>
>
>
>
>
> Any help is highly appreciated.
>
> Thanks,
>
> RG
>
>
--
Greg Stasica