Updated Branches: refs/heads/4.1 f91bf6b73 -> cc58b7b85
CLOUDSTACK-1333: enable logging at Spring startup phase Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/cc58b7b8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/cc58b7b8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/cc58b7b8 Branch: refs/heads/4.1 Commit: cc58b7b85a8551b3d49286f0143d39c6a84ea761 Parents: f91bf6b Author: Kelven Yang <[email protected]> Authored: Tue Feb 19 20:47:57 2013 -0500 Committer: Kelven Yang <[email protected]> Committed: Tue Feb 19 20:49:14 2013 -0500 ---------------------------------------------------------------------- client/WEB-INF/web.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cc58b7b8/client/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/client/WEB-INF/web.xml b/client/WEB-INF/web.xml index 0d75165..626305b 100644 --- a/client/WEB-INF/web.xml +++ b/client/WEB-INF/web.xml @@ -19,6 +19,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> + + <context-param> + <param-name>log4jConfigLocation</param-name> + <param-value>/WEB-INF/classes/log4j-cloud.xml</param-value> + </context-param> + <listener> + <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> + </listener> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
