jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Peng" <peng...@eds.com>
Subject Lose Error-log in cactus_server.log
Date Sun, 30 Jan 2005 18:06:45 GMT
Hey Garfield-Heron,

Thanks for your reply. I have tried with log4j.additivity.cactus = true (or
false), but the error-message is still not wrote into cactus_server.log.
I think it would be perhaps not the problem with log4j.additivity, because
if it is true, then the message from cactus.info() should also not be wrote
into cactus_server.log, just like the message from cactus.error().

Herer is my log4j.properties:
# Disable logging
#org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog

# Force to use JDK 1.4 logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.Jdk14Logger

# Force to use Log4J logging
org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger

# Force to use Simple logging
#org.apache.commons.logging.Log = org.apache.commons.logging.impl.SimpleLog

# ---- JDK 1.4 logging properties

# Following properties are useful if you're using the JDK 1.4 logging
subsystem
# and wish to output logs to a file. Make sure to comment out the NoOpLog
line 
# above.
#java.util.logging.config.file = @target.dir@/logging_server.properties
#handlers = java.util.logging.FileHandler
#java.util.logging.FileHandler.pattern = @target.dir@/test_server.log
#java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter

# If you want to provide finer grained logging, restrict the level for the 
# specific package name. 
# For example: org.apache.cactus.server.level = ALL
org.apache.cactus.level = ALL

# ---- Log4J logging properties

# Following properties are useful if you're using the Log4J logging
subsystem
# and wish to output logs to a file. Make sure to comment out the NoOpLog
line 
# above.
log4j.configuration = C:/log4j.properties

log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = C:/cactus_server.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %d [%t] %-5p %c %C{1} -%M -
%m%n

# Any application log which uses Log4J will be logged to the Cactus log file
log4j.rootCategory=INFO, cactus
log4j.additivity.cactus=true

# Debug logs for Cactus
#log4j.category.org.apache.cactus = DEBUG, cactus
#log4j.additivity.org.apache.cactus = false

log4j.debug=true 

# Debug logs for HttpClient
#log4j.category.org.apache.commons.httpclient = DEBUG, cactus
#log4j.additivity.org.apache.commons.httpclient = false
#log4j.category.httpclient = WARN, cactus
#log4j.additivity.httpclient = false

# ---- SimpleLog logging properties

org.apache.commons.logging.simplelog.showlogname = true
org.apache.commons.logging.simplelog.log.org.apache.cactus = trace
org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient =
trace  

Regards
Peng


Mime
View raw message