log4jConfiguration.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to Jasig under one or more contributor license
  4. agreements. See the NOTICE file distributed with this work
  5. for additional information regarding copyright ownership.
  6. Jasig licenses this file to you under the Apache License,
  7. Version 2.0 (the "License"); you may not use this file
  8. except in compliance with the License. You may obtain a
  9. copy of the License at the following location:
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xmlns:p="http://www.springframework.org/schema/p"
  21. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  22. <description>
  23. Log4J initialization. Configuration options are sourced from cas.properties. This allows deployers to externalize
  24. both cas.properties and log4j.xml, so that a single cas.war file can be deployed to multiple tiers or hosts without
  25. having to do any post configuration. This approach helps to preserve configuration between upgrades.
  26. Deployers should not have to edit this file.
  27. </description>
  28. <bean id="log4jInitialization" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
  29. <property name="targetClass" value="org.springframework.util.Log4jConfigurer"/>
  30. <property name="targetMethod" value="initLogging"/>
  31. <property name="arguments">
  32. <list>
  33. <value>${log4j.config.location:classpath:log4j.xml}</value>
  34. <value>${log4j.refresh.interval:60000}</value>
  35. </list>
  36. </property>
  37. </bean>
  38. </beans>