Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-65

Variables are not supported on status attribute a NullPointerException occurs if a variable is specified on the root log level.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha1
    • 2.0-alpha2
    • Core
    • None

    Description

      The following configuration causes a NullPointerException and the message "null object returned for root"

      <?xml version="1.0" encoding="UTF-8"?>
      <configuration status="${sys:log.level}" strict="false" name="DSI" packages="com.terradue.dsione">
      <appenders>
      <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="[%-5level] %msg%n" />
      </Console>
      </appenders>

      <loggers>
      <root level="${sys:log.level}">
      <appender-ref ref="Console" />
      </root>
      </loggers>
      </configuration>

      Attachments

        Activity

          People

            rgoers Ralph Goers
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: