logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Ricaud <thomas.ric...@hraccess.com>
Subject SMTPAppender on Linux
Date Wed, 11 Mar 2009 21:11:08 GMT

When I include the following smtp appender (name MAIL ) line in my
log4j.properties my java application crash with not a single line of log.
 
#
--------------------------------------------------------------------------- 
# Log4J Loggers # level order OFF<FATAL<ERROR<WARN<INFO<DEBUG<ALL 
#
--------------------------------------------------------------------------- 
# ROOT LOGGER log4j.rootLogger=info, fileappender, MAIL 
log4j.logger.com.hraccess=info,fileappender, MAIL 
log4j.additivity.com.hraccess = false 
#
--------------------------------------------------------------------------- 
# Log4J Appenders 
#
--------------------------------------------------------------------------- 
# 
# The SMTP Appender 
# l
og4j.appender.MAIL=org.apache.log4j.net.SMTPAppender 
log4j.appender.MAIL.Threshold=WARN 
log4j.appender.MAIL.SMTPHost=127.0.0.1 
log4j.appender.MAIL.To=test@truc.com 
log4j.appender.MAIL.From=test@truc.com 
log4j.appender.MAIL.Subject=test 
log4j.appender.MAIL.layout=org.apache.log4j.PatternLayout
log4j.appender.MAIL.layout.ConversionPattern=%d{ISO8601}[%t] %m%n 
# LOG FILE 
log4j.appender.fileappender=org.apache.log4j.RollingFileAppender 
log4j.appender.fileappender.File=${hrjmods.log.dir}/ophrs.log 
log4j.appender.fileappender.MaxFileSize=2MB
log4j.appender.fileappender.MaxBackupIndex=5
log4j.appender.fileappender.layout=org.apache.log4j.PatternLayout
log4j.appender.fileappender.layout.ConversionPattern=%d{ISO8601} %-5p
[%-8X{request.id}][%-15X{client.ip.address}][%t] - %m%n


-- 
View this message in context: http://www.nabble.com/SMTPAppender-on-Linux-tp22464648p22464648.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message