apache-poi/log4j2-console.xml
Marius Volkhart 089aa72647 Use Log4j 2 for logging
This removes the POILogger and POILogFactory mechanism for logging. This mechanism was created at a time when the Java landscape looked very different than it does today.

Log4j 2 is an Apache Foundation project that is well maintained and is widely regarded as having good performance and capabilities. We use only the Log4j API artifact. This lets application developers choose how they want to capture logging events if at all. Integrations with Log4j 2 Core and Logback are available from the Log4j project.

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/log4j@1886103 13f79535-47bb-0310-9956-ffa450edef68
2021-02-01 14:59:43 +00:00

43 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF 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
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.
-->
<Configuration status="WARN" name="console">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5p %c - %m%n" />
</Console>
</Appenders>
<Loggers>
<Logger name="org.apache.poi.poifs.nio.FileBackedDataSource" level="ERROR" />
<Logger name="org.apache.poi.hdgf.chunks.Chunk" level="FATAL" />
<Logger name="org.apache.poi.hpsf.CodePageString" level="ERROR" />
<Logger name="org.apache.poi.hdgf.chunks.ChunkFactory" level="ERROR" />
<Logger name="org.apache.poi.hslf.model.textproperties.BitMaskTextProp" level="ERROR" />
<Logger name="org.apache.poi.hslf.usermodel.HSLFTextParagraph" level="ERROR" />
<Logger name="org.apache.poi.openxml4j.opc.ZipPackage" level="ERROR" />
<Logger name="org.apache.poi.POIDocument" level="WARN" />
<Logger name="org.apache.poi.openxml4j.opc.OPCPackage" level="ERROR" />
<Logger name="org.apache.poi.xssf.usermodel.XSSFWorkbook" level="ERROR" />
<Logger name="org.apache.poi.hslf.usermodel.HSLFGroupShape" level="WARN" />
<Logger name="org.apache.poi.hslf.record.Record" level="ERROR" />
<Root level="TRACE">
<AppenderRef ref="Console" />
</Root>
</Loggers>
</Configuration>