# Log4j configuration file. -*- sh -*-

# Global logging settings: default to WARN and use two adapters named
# F1 and C1, which are described below.
log4j.rootLogger = WARN, F1, C1

# Define file output
log4j.appender.F1 = org.apache.log4j.RollingFileAppender
log4j.appender.F1.layout = org.apache.log4j.PatternLayout
log4j.appender.F1.layout.ConversionPattern = %-5p [%d{ABSOLUTE}] %c{1}: %m%n
log4j.appender.F1.file = /tmp/photowiki.log
log4j.appender.F1.MaxFileSize = 300KB
log4j.appender.F1.MaxBackupIndex = 10

# Define console output
log4j.appender.C1 = org.apache.log4j.ConsoleAppender
log4j.appender.C1.layout = org.apache.log4j.PatternLayout
log4j.appender.C1.layout.ConversionPattern = %-5p [%d{ABSOLUTE}] %c{1}: %m%n

# Modify default log levels for individual packages.
log4j.logger.org.objectstyle.cayenne = WARN
log4j.logger.org.apache.tapestry = WARN

# Change to "WARN" for production
log4j.logger.com.preclick.photowiki = DEBUG

# You can add as many of these as you like. Here's one for the uploader.
# When the uploader's level is set to DEBUG, it saves XML files into the
# directory named in web.xml by the parameter upload-xml-save-dir.
log4j.logger.com.preclick.photowiki.upload = WARN

# This is the logger that controls Cayenne's SQL output.
# Setting the level to INFO or DEBUG will turn the logs on.
log4j.logger.org.objectstyle.cayenne.access.QueryLogger = WARN

