[prev in list] [next in list] [prev in thread] [next in thread]
List: log4j-dev
Subject: [jira] [Closed] (LOG4J2-185) Howto individually configure logging for separate instances of a webapp
From: "Ralph Goers (JIRA)" <jira () apache ! org>
Date: 2013-04-28 6:12:18
Message-ID: JIRA.12639379.1364401442838.238731.1367129538533 () arcas
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/LOG4J2-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Ralph Goers closed LOG4J2-185.
------------------------------
> Howto individually configure logging for separate instances of a webapp (war file)?
> -----------------------------------------------------------------------------------
>
> Key: LOG4J2-185
> URL: https://issues.apache.org/jira/browse/LOG4J2-185
> Project: Log4j 2
> Issue Type: Question
> Components: Configurators, Documentation
> Affects Versions: 2.0-beta5
> Environment: multiple copies of one webapp (war file) deployed in one servlet \
> container (e.g. Tomcat)
> Reporter: Alexander Horz
> Labels: configuration, documentation,
>
> The logging of separate instances of one webapp (war file) deployed in a joint \
> servlet container shall be directed to separate files/directories. E.g. a \
> "production", "demo", and "test" copy of webapp "foo.war" are deployed in a joint \
> Tomcat, and logging of the shall be directed to ".../log/production/*", \
> ".../log/demo/*" and ".../log/test/*" respectively. The only solution I have found \
> requires replacement of ".../WEB-INF/classes/log4j2.xml" for each but the first \
> webapp. However, this requires un/repackaging of the war file. I would like to:
> - use an unmodified war file for all instances,
> - set the "logging directory" parameter in each instance' "context" configuration \
> file, and
> - programmatically reconfigure the individual configuration loaded from \
> ".../WEB-INF/classes/log4j2.xml" when each instance is starting. Is this possible?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic