You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2010/07/06 23:04:22 UTC
DO NOT REPLY [Bug 49563] New: New SMTPProtocol and SMTPPort not
recognized
https://issues.apache.org/bugzilla/show_bug.cgi?id=49563
Summary: New SMTPProtocol and SMTPPort not recognized
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: other
Status: NEW
Severity: minor
Priority: P3
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: guru_gho@hotmail.com
CC: hauser@acm.org
Depends on: 25355
+++ This bug was initially created as a clone of Bug #25355 +++
If my application sends out sensitive info about a severe/fatal application
state via log4j, I don't want eavesdropping attackers to learn about that!
see also Bug 24969 for an RFE re SMTP AUTH
I am trying to set SMTPProtocol using log4j.properties based on log4j1.2-16
lib.
But the property seems not to be recognized:
My log4j.properties:
-----------------------------------------------------------
log4j.appender.emailOut=org.apache.log4j.net.SMTPAppender
#log4j.appender.emailOut.Threshold=INFO
# Debugging
log4j.appender.emailOut.SMTPDebug=true
log4j.appender.emailOut.SMTPHost=smtp.gmail.com
log4j.appender.emailOut.SMTPProtocol="smtps"
log4j.appender.emailOut.SMTPPort=465
log4j.appender.emailOut.BufferSize=20
#log4j.appender.emailOut.To=admin@econoinfo.com.br
log4j.appender.emailOut.To=mailer.econoinfo@gmail.com
log4j.appender.emailOut.layout=org.apache.log4j.PatternLayout
log4j.appender.emailOut.layout.ConversionPattern=%d{ISO8601} %5p [%t](%F:%L)-
%m%n
-----------------------------------------------------------
The errors resulted:
-----------------------------------------------------------
log4j:WARN No such property [SMTPProtocol] in
org.apache.log4j.net.SMTPAppender.
log4j:WARN No such property [SMTPPort] in org.apache.log4j.net.SMTPAppender.
-----------------------------------------------------------
Also, there is a minor typo error in the file instructing to set smtpProtocol
to "smpts" instead of "smtps".
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org