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

SMTPAppender only send ERROR Level log

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      Jdk 1.8

      Description

      <appender name="EMAILDEV" class="ch.qos.logback.classic.net.SMTPAppender">
      <smtpHost>${smtpHost}</smtpHost>
      <smtpPort>${smtpPort}</smtpPort>
      <username>${username}</username>
      <password>${password}</password>
      <SSL>${SSL}</SSL>
      <asynchronousSending>false</asynchronousSending>
      <to>${email_to_dev}</to>
      <from>${email_from}</from>
      <subject>${email_subject_dev}</subject>
      <layout class="ch.qos.logback.classic.html.HTMLLayout" >
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS}[%thread] %-5level %logger{50} - %msg%n</pattern>
      </layout>
      <!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
      <level>WARN</level>
      </filter> -->
      <cyclicBufferTracker class="ch.qos.logback.core.spi.CyclicBufferTracker">
      <!-- send just one log entry per email -->
      <bufferSize>1</bufferSize>
      </cyclicBufferTracker>
      </appender>

       

      logger.warn("TEst");

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              arrowwind Backer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: