[logback-dev] [JIRA] Assigned: (LBSITE-42) SMTPHost property name incorrect in documentation

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Dec 16 08:57:52 CET 2010


     [ http://jira.qos.ch/browse/LBSITE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu reassigned LBSITE-42:
--------------------------------

    Assignee: Ceki Gulcu  (was: Logback dev list)

> SMTPHost property name incorrect in documentation
> -------------------------------------------------
>
>                 Key: LBSITE-42
>                 URL: http://jira.qos.ch/browse/LBSITE-42
>             Project: logback-site
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 0.9.26
>         Environment: Linux hostname-03 2.6.27-17-server #1 SMP Fri Mar 12 04:04:33 UTC 2010 i686 GNU/Linux
>            Reporter: Jay Taylor
>            Assignee: Ceki Gulcu
>            Priority: Trivial
>
> The following documentation appears to have some incorrect information: http://logback.qos.ch/manual/appenders.html#SMTPAppender
> The table includes a property named "smtpHost". Using this value results in logback ignoring the setting and attempting to send mail through localhost.
> The correct property name appears to be "SMTPHost". The documentation also states that the parameter is mandatory. It appears to fall back to localhost if it is not encountered (perhaps java-mail is doing that).
> I would assume that "smtpPort" is incorrect too based on the setter name of "SMTPPort" in SMTPAppenderBase.
> Log info:
> |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.net.SMTPAppender]
> |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [TEST]
> |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 22:13 - no applicable action for [smtpHost], current pattern is [[configuration][appender][smtpHost]]
> |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.net.SMTPAppender]
> ...
> |-ERROR in ch.qos.logback.classic.net.SMTPAppender[POR] - Error occured while sending e-mail notification. javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused))
> 	at javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25 (java.net.ConnectException: Connection refused))
> 	at 	at javax.mail.Transport.send(Transport.java:163)
> 	at 	at javax.mail.Transport.send(Transport.java:48)
> 	at 	at ch.qos.logback.core.net.SMTPAppenderBase.sendBuffer(SMTPAppenderBase.java:323)
> 	at 	at ch.qos.logback.core.net.SMTPAppenderBase.append(SMTPAppenderBase.java:181)
> 	at 	at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list