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

SMTPAppender only send ERROR Level log

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • logback-classic
    • None
    • 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

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

            Dates

              Created:
              Updated: