| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!-- |
|---|
| 3 | |
|---|
| 4 | Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk> |
|---|
| 5 | |
|---|
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | You may obtain a copy of the License at |
|---|
| 9 | |
|---|
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 11 | |
|---|
| 12 | Unless required by applicable law or agreed to in writing, software |
|---|
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 15 | See the License for the specific language governing permissions and |
|---|
| 16 | limitations under the License. |
|---|
| 17 | |
|---|
| 18 | --> |
|---|
| 19 | |
|---|
| 20 | <configuration> |
|---|
| 21 | |
|---|
| 22 | <property name="LOG_HOME" value="/opt/raptor/ica/logs/" /> |
|---|
| 23 | |
|---|
| 24 | <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> |
|---|
| 25 | <encoder> |
|---|
| 26 | <pattern>%5p %d \(%C{3}:%L\) ---> %m%n</pattern> |
|---|
| 27 | </encoder> |
|---|
| 28 | </appender> |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|---|
| 32 | <file>${LOG_HOME}/raptor-ica-process.log</file> |
|---|
| 33 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|---|
| 34 | <!-- daily rollover --> |
|---|
| 35 | <fileNamePattern>${LOG_HOME}/raptor-ica-process.%d{yyyy-MM-dd}.log</fileNamePattern> |
|---|
| 36 | <!-- keep 30 days' worth of history --> |
|---|
| 37 | <maxHistory>30</maxHistory> |
|---|
| 38 | </rollingPolicy> |
|---|
| 39 | <encoder> |
|---|
| 40 | <pattern>%5p %d \(%C{3}:%L\) ---> %m%n</pattern> |
|---|
| 41 | </encoder> |
|---|
| 42 | </appender> |
|---|
| 43 | |
|---|
| 44 | <logger name="org.springframework" level="ERROR"> |
|---|
| 45 | <appender-ref ref="stdout"/> |
|---|
| 46 | <appender-ref ref="FILE"/> |
|---|
| 47 | </logger> |
|---|
| 48 | |
|---|
| 49 | <logger name="uk.ac.cardiff" level="trace"> |
|---|
| 50 | <appender-ref ref="stdout"/> |
|---|
| 51 | <appender-ref ref="FILE"/> |
|---|
| 52 | </logger> |
|---|
| 53 | |
|---|
| 54 | <logger name="org.eclipse.jetty" level="INFO"> |
|---|
| 55 | <appender-ref ref="stdout"/> |
|---|
| 56 | <appender-ref ref="FILE"/> |
|---|
| 57 | </logger> |
|---|
| 58 | |
|---|
| 59 | </configuration> |
|---|