# ----------------------------------------------------------------------------- # Logging properties # ----------------------------------------------------------------------------- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Disable logging by default when running the tests. If you wish to use a # logging subsystem, uncomment the line below. That will let Commons logging # decide automatically of a suitable logging system for you. You can also force # commons-logging to use a specific logging system. For more info, see # http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html#package_description # 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.properties handlers = java.util.logging.FileHandler java.util.logging.FileHandler.pattern = @target.dir@/test.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.commons.httpclient.level = ALL # .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 = file:/@target.dir@/logging.properties log4j.appender.cactus = org.apache.log4j.FileAppender log4j.appender.cactus.File = @target.dir@/test.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 # Any application log which uses Log4J will be logged to the Cactus log file log4j.rootCategory=DEBUG, cactus # Debug logs for Cactus log4j.category.org.apache.cactus = DEBUG, cactus log4j.additivity.org.apache.cactus = false # 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