Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-388

class and line conversion words don't work in SMTPAppender

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0
    • logback-classic
    • None
    • logback-1.0.0, slf4j-1.6.4, java 6

    Description

      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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            krustyfur Chris Cheshire
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: