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

SyslogAppenderBase does not support all documented facility strings

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.1.0
    • 1.0.6
    • logback-core
    • None

    Description

      The NTP, AUDIT, ALERT and CLOCK facility strings are documented as supported but if used result in an exception being logged e.g.

      -ERROR in ch.qos.logback.core.joran.spi.Interpreter@22:14 - RuntimeException in Action for tag [appender] java.lang.IllegalArgumentException: AUDIT is not a valid syslog facility string
      at java.lang.IllegalArgumentException: AUDIT is not a valid syslog facility string
      at at ch.qos.logback.core.net.SyslogAppenderBase.facilityStringToint(SyslogAppenderBase.java:150)
      at at ch.qos.logback.classic.pattern.SyslogStartConverter.start(SyslogStartConverter.java:44)
      at at ch.qos.logback.core.pattern.ConverterUtil.startConverters(ConverterUtil.java:37)
      at at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:91)
      at at ch.qos.logback.classic.net.SyslogAppender.buildLayout(SyslogAppender.java:107)
      at at ch.qos.logback.core.net.SyslogAppenderBase.start(SyslogAppenderBase.java:64)
      at at ch.qos.logback.classic.net.SyslogAppender.start(SyslogAppender.java:48)
      at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
      at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318)
      at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197)
      at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183)
      at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
      at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56)
      at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
      at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
      at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
      at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)
      at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
      at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
      at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)

      Attachments

        Activity

          People

            tony19 Tony Trinh
            andym102 Andy McBride
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: