|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + ! Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | + ! contributor license agreements. See the NOTICE file distributed with |
| 6 | + ! this work for additional information regarding copyright ownership. |
| 7 | + ! The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | + ! (the "License"); you may not use this file except in compliance with |
| 9 | + ! the License. You may obtain a copy of the License at |
| 10 | + ! |
| 11 | + ! http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + ! |
| 13 | + ! Unless required by applicable law or agreed to in writing, software |
| 14 | + ! distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | + ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | + ! See the License for the specific language governing permissions and |
| 17 | + ! limitations under the License. |
| 18 | + !--> |
| 19 | + |
| 20 | +<!-- https://logging.apache.org/log4j/2.x/manual/configuration.html |
| 21 | + https://logging.apache.org/log4j/2.x/manual/appenders.html |
| 22 | +--> |
| 23 | +<Configuration> |
| 24 | + <Appenders> |
| 25 | + <Console name="STDOUT" target="SYSTEM_OUT"> |
| 26 | + <PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss} %-5p %C{2}:%L - %m%n"/> |
| 27 | + </Console> |
| 28 | + <RollingFile name="FILE" fileName="target/pdfbox.log" filePattern="target/pdfbox-%i.log"> |
| 29 | + <PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss} %-5p %C{2}:%L - %m%n"/> |
| 30 | + <Policies> |
| 31 | + <OnStartupTriggeringPolicy /> |
| 32 | + <SizeBasedTriggeringPolicy size="20 MB" /> |
| 33 | + </Policies> |
| 34 | + <DefaultRolloverStrategy max="5"/> |
| 35 | + </RollingFile> |
| 36 | + </Appenders> |
| 37 | + <Loggers> |
| 38 | + <Root level="info"> |
| 39 | + <AppenderRef ref="STDOUT"/> |
| 40 | + <AppenderRef ref="FILE"/> |
| 41 | + </Root> |
| 42 | + </Loggers> |
| 43 | +</Configuration> |
0 commit comments