John Lussmyer created LOG4J2-794:
------------------------------------
Summary: configurationFile with space in name will fail to be
loaded
Key: LOG4J2-794
URL: https://issues.apache.org/jira/browse/LOG4J2-794
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Affects Versions: 2.0
Environment: Windows 7
Reporter: John Lussmyer
We've set the System Property "log4j.configurationFile" to be
"C:\\Repo\\Metrix\\Logs Two\\Metrix.xml"
When ConfigurationFactory.getInputFromString() tries to load it, it fails.
This appears to be due to the attempt to open it as a simple file,
"final File file = new File(config)"
passes the string "file:C:\\Repo\\Metrix\\Logs Two\\Metrix.xml", which File()
does not understand.
This results in:
java.io.FileNotFoundException: file:C:\Repo\Metrix\Logs Two\Metrix.xml (The
filename, directory name, or volume label syntax is incorrect)
(Note: This is actually with the log4j 2.0.1 jar files, but the "Affects
Version" won't let me use that version.)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]