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

Can't configure a logger off in yaml

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 2.11.1
    • None
    • Configurators
    • None

    Description

      Yaml config of the form:

      configuration:
        status: off
      

      results in:

      2019-07-23 16:06:15,778 main ERROR Invalid status level specified: false. Defaulting to ERROR.

      and trying to turn off an ordinary logger:

      - name: com.acme.noise
        level: off
        additivity: false
      

      results in:

      2019-07-23 16:18:29,534 main WARN Error while converting string [false] to type [class org.apache.logging.log4j.Level]. Using default value [null]. java.lang.IllegalArgumentException: Unknown level constant [FALSE].

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            som-snytt Som Snytt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment