#
# Copyright 2006-2008 Sxip Identity Corporation
#

################################################################
#
# Logging controls
#
################################################################

log4j.rootLogger=INFO, A1
# INFO - log level, possible values: DEBUG, INFO, WARN, ERROR
#        If DEBUG is used passwords will be dumped to log files!
#        Do not use in production.
# A2 - general daily rolling file appender
# A3 - errors only file appender
# Add A1 to also log to console (and catalina.out)
# Add A4 to also log to syslog

log4j.logger.org.openid4java=DEBUG, A2, A3
log4j.logger.net.sxip=DEBUG, A2, A3

# A1 is set to be ConsoleAppender sending its output to System.out
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# The conversion pattern consists of date in ISO8601 format, level,
# thread name, logger name truncated to its rightmost two components
# and left justified to 17 characters, location information consisting
# of file name (padded to 13 characters) and line number, nested
# diagnostic context, the and the application supplied message

log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss'Z'} %-5p %m CLASS:%C{2} %t %x %n

################################################################
#
# Send Errors, Warnings and Infos to an audit log
#
################################################################

# Appender A2 writes all messages to a file.
# Define the location where the log file will be created.
# Ensure the directory already exists with appropriate
# write permissions.

log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.DatePattern='.'yyyy'-'MM'-'dd
log4j.appender.A2.File=${catalina.home}/logs/openidcards.sxip.com_op_debug_log


# Append to the log.
log4j.appender.A2.Append=true

# Appender A2 uses the PatternLayout.
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss'Z'} %-5p %m CLASS:%C{2} %t %x %n


################################################################
#
# Send Errors to an error log
#
################################################################

# Appender A3 writes "error" class messages to a file.
# Define the location where the log file will be created.
# Ensure the directory already exists with appropriate
# write permissions.

log4j.appender.A3=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A3.DatePattern='.'yyyy'-'MM'-'dd
log4j.appender.A3.File=${catalina.home}/logs/openidcards.sxip.com_op_error_log

# Append to the log.
log4j.appender.A3.Append=true

log4j.appender.A3.threshold=ERROR

# Appender A3 uses the PatternLayout.
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss'Z'} %-5p %m CLASS:%C{2} %t %x %n


################################################################
#
# Send Errors to the SysLog
#
################################################################

# Appender A4 writes to the syslog.
log4j.appender.A4=org.apache.log4j.net.SyslogAppender

log4j.appender.A4.threshold=ERROR
# Specify host name of the syslog service
log4j.appender.A4.SyslogHost=localhost

# Appender A4 uses the PatternLayout.
log4j.appender.A4.layout=org.apache.log4j.PatternLayout
log4j.appender.A4.layout.ConversionPattern=%m CLASS:%C{2} %n

