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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.11.1
    • Fix Version/s: None
    • Component/s: Configurators
    • Labels:
      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

            People

            • Assignee:
              Unassigned
              Reporter:
              som-snytt Som Snytt

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment