[
https://issues.apache.org/jira/browse/LOG4J2-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916099#comment-13916099
]
Remko Popma commented on LOG4J2-554:
------------------------------------
{{log4jConfiguration}} is the old log4j-1.2 system property name. Log4j2 uses a
different system property name, {{log4j.configurationFile}} to specify the
config file location.
Also, I think it is fine for a web container to decide that /WEB-INF means the
WEB-INF folder under the root of a war file, but I don't think you can ask
log4j to look at the world that way. The root is the root of the file system, I
think.
About the error message, that does sound like a separate issue.
> No easy way to point to a configuration file in the WEB-INF folder
> ------------------------------------------------------------------
>
> Key: LOG4J2-554
> URL: https://issues.apache.org/jira/browse/LOG4J2-554
> Project: Log4j 2
> Issue Type: Bug
> Components: Configurators
> Affects Versions: 2.0-beta9
> Environment: WildFly 8.0.0, JDK 1.7.0_45, WIn7
> Reporter: Russell J. Nile
> Priority: Minor
>
> I am trying to put all of my configuration files under WEB-INF/config folder
> but there is no way (other than an explicit reference to my file system) to
> set the log4jConfiguration to point to that. It also does not report any
> errors when it can't find the file log4jConfiguration (unless there is a URI
> reference error) so you are scratching your head when it does nothing.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]