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