[logback-dev] [JIRA] Commented: (LBCLASSIC-322) class and line conversion words don't work in SMTPAppender
Chris Cheshire (JIRA)
noreply-jira at qos.ch
Thu Feb 23 16:59:26 CET 2012
[ http://jira.qos.ch/browse/LBCLASSIC-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12364#action_12364 ]
Chris Cheshire commented on LBCLASSIC-322:
------------------------------------------
Slight update. The above pattern DOES work. The pattern below does not :
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%date [%thread] %-5level %logger %n%n Class : %class%n Line : %line%n%n%message%n</pattern>
</layout>
The difference is a space after the %class / %line and the %n. With the space it works. Without the space it doesn't.
> class and line conversion words don't work in SMTPAppender
> ----------------------------------------------------------
>
> Key: LBCLASSIC-322
> URL: http://jira.qos.ch/browse/LBCLASSIC-322
> Project: logback-classic
> Issue Type: Bug
> Components: appender
> Affects Versions: 1.0.0
> Environment: logback-1.0.0, slf4j-1.6.4, java 6
> Reporter: Chris Cheshire
> Assignee: Logback dev list
>
> The following layout works as expected when in a FileAppender or RollingFileAppender
> <layout class="ch.qos.logback.classic.PatternLayout">
> <pattern>%date [%thread] %-5level %logger %n%n Class : %class %n Line : %line %n%n%message%n</pattern>
> </layout>
> but when in an SMTPAppender, the class and line conversion words only produce a '?' instead of their correct values.
> This was working in 0.9.24 (my last used version).
> Chris
--
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