[
https://issues.apache.org/jira/browse/LOG4J2-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916370#comment-13916370
]
Ralph Goers commented on LOG4J2-554:
------------------------------------
If the container you are running in exposes a system property then you can
easily achieve what you want. For example, in Tomcat you could specifiy
${env:catalina.home}/webapps/CTMSApplicationServices/WEB-INF/config/log4j2.xml.
That said, we could be doing
getServletContext().getResourceAsStream(getServletContext().getInitParameter("log4jConfiguration"));
which would allow exactly what you want. I will take a look at the code and
see if we can easily do that.
> 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]