You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/11/03 15:19:00 UTC
[jira] [Commented] (LOG4J2-2494) System property configurationFile
with drive letter gives exception but works
[ https://issues.apache.org/jira/browse/LOG4J2-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674076#comment-16674076 ]
Gary Gregory commented on LOG4J2-2494:
--------------------------------------
That is confusing, do you have a PR to propose? Please see https://github.com/apache/logging-log4j2/
> System property configurationFile with drive letter gives exception but works
> -----------------------------------------------------------------------------
>
> Key: LOG4J2-2494
> URL: https://issues.apache.org/jira/browse/LOG4J2-2494
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.11.1
> Reporter: Björn Kautler
> Priority: Minor
>
> Setting system property {{-Dlog4j.configurationFile=D:/project/build/install/project/config/log4j2.xml}}, while working, the content is properly evaluated, first logs the following exception:
> {noformat}
> ERROR StatusLogger Invalid URL D:/project/build/install/project/config/log4j2.xml
> java.net.MalformedURLException: unknown protocol: d
> at java.net.URL.<init>(URL.java:600)
> at java.net.URL.<init>(URL.java:490)
> at java.net.URL.<init>(URL.java:439)
> at java.net.URI.toURL(URI.java:1089)
> at org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:247)
> at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:404)
> at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:346)
> at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:260)
> at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:615)
> at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:636)
> at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:243)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
> at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
> at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:648)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)