Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.14.1
-
None
-
None
-
Windows 10
Java program running on Windows but with log4j configuration on classpath on WSL
Description
When Log4J searches for configuration and config file is located on WSL FileUtils.fileFromUri fails to create a File instance.
The reason is that when the URI is in this form file://wsl$/some/path/to/log4j.config
new File(uri) throws exception that this uri has authority and as result the utility method returns null.
If in this case new File(uri.toString()) is used it works perfectly fine