You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Mark Allen <ma...@pangaeainc.com> on 2003/01/07 02:42:40 UTC
Can't get client side logging to work
I'm having real trouble getting the client side logging to work. I know
that log4jconfig.properties is in by class path since it is right beside
cactus.properties and that is found.
Here is the error message I'm getting:
[junit] log4j:WARN No appenders could be found for logger
(org.apache.cactus.util.JUnitVersionHelper).
[junit] log4j:WARN Please initialize the log4j system properly.
Here's by log4jconfig.properties
log4j.rootCategory=DEBUG, cactus
# Properties for configuring Log4j
# This is the configuring for logging on the JUnit side (i.e. the client
side)
log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = ./log/cactus_client.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p
%-30.30c{2} %x - %m %n
# By default we don't log at the DEBUG level for Cactus log, in order not to
generate too
# many logs. However, should a problem arise and logs need to be sent to the
Cactus dev team,
# then we will ask you to change this to DEBUG.
log4j.category.org.apache.cactus = WARN, cactus
#log4j.additivity.org.apache.cactus=false
# Don't show debug logs for HttpClient
log4j.category.org.apache.commons.httpclient = WARN, cactus
log4j.additivity.org.apache.commons.httpclient=false
log4j.category.httpclient = WARN, cactus
log4j.additivity.httpclient=false
Thanks in advance.
Mark.
Mark Allen
Pangaea Systems Inc.
5th Floor - 353 Water St.
Vancouver, BC, V6B 1B8
email: mallen@pangaeainc.com
phone: (604) 692-4700
direct: (604) 692-4703
fax: (604) 681-4656
RE: Can't get client side logging to work
Posted by Vincent Massol <vm...@octo.com>.
Hi Mark,
I think the name should be log4j.properties, unless you have passed the
log4j.configuration System property. See the Log4j manual at
http://jakarta.apache.org/log4j/docs/manual.html (search for
"log4j.properties").
Hope it helps,
-Vincent
> -----Original Message-----
> From: Mark Allen [mailto:mallen@pangaeainc.com]
> Sent: 07 January 2003 02:43
> To: cactus-user@jakarta.apache.org
> Subject: Can't get client side logging to work
>
> I'm having real trouble getting the client side logging to work. I
know
> that log4jconfig.properties is in by class path since it is right
beside
> cactus.properties and that is found.
>
> Here is the error message I'm getting:
>
> [junit] log4j:WARN No appenders could be found for logger
> (org.apache.cactus.util.JUnitVersionHelper).
> [junit] log4j:WARN Please initialize the log4j system properly.
>
> Here's by log4jconfig.properties
>
> log4j.rootCategory=DEBUG, cactus
>
> # Properties for configuring Log4j
> # This is the configuring for logging on the JUnit side (i.e. the
client
> side)
>
> log4j.appender.cactus = org.apache.log4j.FileAppender
> log4j.appender.cactus.File = ./log/cactus_client.log
> log4j.appender.cactus.Append = false
> log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
> log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t]
%-5p
> %-30.30c{2} %x - %m %n
>
> # By default we don't log at the DEBUG level for Cactus log, in order
not
> to
> generate too
> # many logs. However, should a problem arise and logs need to be sent
to
> the
> Cactus dev team,
> # then we will ask you to change this to DEBUG.
> log4j.category.org.apache.cactus = WARN, cactus
> #log4j.additivity.org.apache.cactus=false
>
> # Don't show debug logs for HttpClient
> log4j.category.org.apache.commons.httpclient = WARN, cactus
> log4j.additivity.org.apache.commons.httpclient=false
> log4j.category.httpclient = WARN, cactus
> log4j.additivity.httpclient=false
>
> Thanks in advance.
>
> Mark.
>
> Mark Allen
>
> Pangaea Systems Inc.
> 5th Floor - 353 Water St.
> Vancouver, BC, V6B 1B8
>
> email: mallen@pangaeainc.com
>
> phone: (604) 692-4700
> direct: (604) 692-4703
> fax: (604) 681-4656
>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>