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

Properties in an unreferenced appender cause multiple warnings

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.5.12
    • 1.3.0-alpha9
    • logback-classic
    • None

    Description

      Sample config

      <configuration debug="true">
      	<appender name="STDOUT"		class="ch.qos.logback.core.ConsoleAppender">
      		<encoder>
      			<pattern>%d %5.5le [%thread] - %msg%n</pattern>
      		</encoder>
      	</appender>
      
      	<appender name="EMAIL" 	class="ch.qos.logback.classic.net.SMTPAppender">
      
      		<evaluator class="ch.qos.logback.classic.boolex.OnErrorEvaluator" />
      
      		<cyclicBufferTracker
      			class="ch.qos.logback.core.spi.CyclicBufferTracker">
      			<bufferSize>1024</bufferSize>
      		</cyclicBufferTracker>
      
      
      		<smtpHost>smtp.gmail.com</smtpHost>
      
      		<smtpPort>587</smtpPort>
      		<STARTTLS>true</STARTTLS>
      
      		<username>${smtp.username}</username>
      		<password>${smtp.password}</password>
      
      		<to>foo@bar.ch</to>
      		<from>foo@bar.ch</from>
      		<subject>TESTING: %logger{20} - %m</subject>
      		<asynchronousSending>false</asynchronousSending>
      		<layout class="ch.qos.logback.classic.PatternLayout">
      			<pattern>%d %5.5le [%thread] - %msg%n</pattern>
      		</layout>
      	</appender>
      
      	<root level="DEBUG">
      		<appender-ref ref="STDOUT" />
      		<!-- <appender-ref ref="EMAIL" /> -->
      	</root>
      </configuration>
      
      12:05:48,472 |-WARN in ch.qos.logback.core.model.processor.AppenderModelHandler - Appender named [EMAIL] not referenced. Skipping further processing.
      12:05:48,478 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [evaluator] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,478 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [cyclicBufferTracker] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [bufferSize] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [smtpHost] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [smtpPort] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [STARTTLS] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [username] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,479 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [password] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [to] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [from] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [subject] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [asynchronousSending] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [layout] in [ch.qos.logback.classic.LoggerContext]
      12:05:48,480 |-WARN in ch.qos.logback.core.model.processor.ImplicitModelHandler - Ignoring unkown property [pattern] in [ch.qos.logback.classic.LoggerContext]
      

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: