[logback-dev] [JIRA] (LOGBACK-1321) SMTPAppender only send ERROR Level log

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Jul 3 05:57:00 CEST 2017


Backer created LOGBACK-1321:
-------------------------------

             Summary: SMTPAppender  only send  ERROR Level log 
                 Key: LOGBACK-1321
                 URL: https://jira.qos.ch/browse/LOGBACK-1321
             Project: logback
          Issue Type: Bug
          Components: logback-classic
    Affects Versions: 1.2.3
         Environment: Jdk 1.8
            Reporter: Backer
            Assignee: Logback dev list


<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");



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list