You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Manik Singla (JIRA)" <ji...@apache.org> on 2018/06/28 11:52:00 UTC

[jira] [Created] (LOG4J2-2361) log4j2 lookups doesn't default to blank in case of null

Manik Singla created LOG4J2-2361:
------------------------------------

             Summary: log4j2 lookups doesn't default to blank in case of null
                 Key: LOG4J2-2361
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2361
             Project: Log4j 2
          Issue Type: Bug
          Components: Lookups
    Affects Versions: 2.11.0
         Environment: Linux
            Reporter: Manik Singla


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
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)