The only bit i was missing was the threshold on the appenders.
log4j.rootLogger=ERROR, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/root.log
log4j.appender.R.MaxFileSize=128MB
log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apac
Hi,
I have setup the same kind of thing at work but don't have access to
the files at the moment.
>From memory the following will log all error and above messages to
root.log. And all messages from the org.springframework and
com.another.package packages go to spring.log.
log4j.rootLogger=ERROR,
Sorry scrap that request I have found the info now.
http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=3
On 7/25/07, ben short <[EMAIL PROTECTED]> wrote:
James,
Could you elaborate about the MDC value please. What is it, how do i set it?
Regards
Ben
On 7/5/07, James St
James,
Could you elaborate about the MDC value please. What is it, how do i set it?
Regards
Ben
On 7/5/07, James Stauffer <[EMAIL PROTECTED]> wrote:
I had added the hostname as an MDC value at application startup to achieve that.
On 7/4/07, Hans Schwaebli <[EMAIL PROTECTED]> wrote:
> How can
I just changed the logger configs to the following, but I still see
the httpclient log messages.
On 5/23/07, ben short <[EMAIL PROTECTED]> wrote:
Im using spring with the following config in the web.xml.
log4jConfigLocation
/WEB-INF/log
d loggers in it's ancestry, including the 'root' logger.
>
> To change this behavior, just set the additivity on the
> org.apache.commons.httpclient to false.
>
> value="WARN"/>
>
> Ron Gallagher, AT&T Mobility
>
> -Original Message-
>
Heres my output with -Dlog4j.debug. Seems to show the correct setup of
the logger.
log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
Hi,
I have an application that uses the apache HTTPClient. With my
applications logging setup in debug mode the HTTPClient spits out lots
of info to the log file. I have setup a logger as shown in the
following log4j.xml, But it seems to be ignored and i see the following
in my log file. I also h