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

log4j2 lookups doesn't default to blank in case of null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.11.0
    • Fix Version/s: None
    • Component/s: Lookups
    • Labels:
      None
    • Environment:

      Linux

      Description

      When we write something like below in log4j2.xml where logPath= "logs"

      fileName="${sys:logPath}/app.log"

       

      Log File will be created at cwd/logs/app.log

       

      but when its not defined, file is created as cwd/${sys:logPath}/app.log where we keep the variable intact. This might be expectation but not mentioned on website and also differs from intuition.

      I would have expected  cwd/app.log if logPath is not defined as system property
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smanik.im Manik Singla
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: