[logback-dev] [JIRA] Created: (LBCORE-213) Do not restrict SMTPAppender <to> to only 1 email address
Alexandre Garnier (JIRA)
noreply-jira at qos.ch
Thu Jun 23 16:42:51 CEST 2011
Do not restrict SMTPAppender <to> to only 1 email address
---------------------------------------------------------
Key: LBCORE-213
URL: http://jira.qos.ch/browse/LBCORE-213
Project: logback-core
Issue Type: Bug
Reporter: Alexandre Garnier
Assignee: Logback dev list
It's not possible to have multiple email address in <to> element of SMTPAppender because only the first one is used (https://github.com/ceki/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java#L270)
When using a property, multiple <to> element is not really easy (if even possible)...
Example:
<appender name="email" class="ch.qos.logback.classic.net.SMTPAppender">
...
<to>${mail.log.to}</to>
...
</appender>
With properties :
mail.log.to = admin at domain.com,dev at domain.com,op at domain.com
=> Only admin at domain.com get the email !
--
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