mirror of https://github.com/apache/poi.git
forbidden-apis
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2af56511f
commit
ba79c4c3c1
|
@ -18,6 +18,7 @@ package org.apache.poi.logging;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.poi.util.ExceptionUtil;
|
import org.apache.poi.util.ExceptionUtil;
|
||||||
|
import org.apache.poi.util.SuppressForbidden;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is used to get a log4j logger for the XmlBeans project.
|
* This class is used to get a log4j logger for the XmlBeans project.
|
||||||
|
@ -35,6 +36,7 @@ public final class PoiLogManager {
|
||||||
private PoiLogManager() {
|
private PoiLogManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressForbidden("printStackTrace")
|
||||||
public static Logger getLogger(Class<?> clz) {
|
public static Logger getLogger(Class<?> clz) {
|
||||||
try {
|
try {
|
||||||
final Logger logger = LogManager.getLogger(clz);
|
final Logger logger = LogManager.getLogger(clz);
|
||||||
|
@ -56,6 +58,7 @@ public final class PoiLogManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressForbidden("printStackTrace")
|
||||||
public static Logger getLogger(String name) {
|
public static Logger getLogger(String name) {
|
||||||
try {
|
try {
|
||||||
final Logger logger = LogManager.getLogger(name);
|
final Logger logger = LogManager.getLogger(name);
|
||||||
|
|
Loading…
Reference in New Issue