Skip to content

Commit

Permalink
add XmlBeansLogManager
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xmlbeans/trunk@1921957 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Nov 19, 2024
1 parent 7569cc4 commit 89fc0e4
Show file tree
Hide file tree
Showing 11 changed files with 1,980 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

package org.apache.xmlbeans.impl.common;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;
import org.apache.xmlbeans.impl.util.ExceptionUtil;
import org.w3c.dom.Document;
import org.xml.sax.ErrorHandler;
Expand All @@ -35,7 +35,7 @@
import java.util.concurrent.TimeUnit;

public final class DocumentHelper {
private static final Logger LOG = LogManager.getLogger(DocumentHelper.class);
private static final Logger LOG = XmlBeansLogManager.getLogger(DocumentHelper.class);
private static long lastLog;

private DocumentHelper() {}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/xmlbeans/impl/common/SAXHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

package org.apache.xmlbeans.impl.common;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;
import org.apache.xmlbeans.impl.util.ExceptionUtil;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
Expand All @@ -35,7 +35,7 @@
* Provides handy methods for working with SAX parsers and readers
*/
public final class SAXHelper {
private static final Logger LOG = LogManager.getLogger(SAXHelper.class);
private static final Logger LOG = XmlBeansLogManager.getLogger(SAXHelper.class);
private static long lastLog;

private SAXHelper() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/xmlbeans/impl/common/StaxHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

package org.apache.xmlbeans.impl.common;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;

import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLInputFactory;
Expand All @@ -27,7 +27,7 @@
* Provides handy methods for working with StAX parsers and readers
*/
public final class StaxHelper {
private static final Logger LOG = LogManager.getLogger(StaxHelper.class);
private static final Logger LOG = XmlBeansLogManager.getLogger(StaxHelper.class);

private StaxHelper() {}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/xmlbeans/impl/common/XBeanDebug.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

package org.apache.xmlbeans.impl.common;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;

public class XBeanDebug {
public static final Logger LOG = LogManager.getLogger(XBeanDebug.class);
public static final Logger LOG = XmlBeansLogManager.getLogger(XBeanDebug.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import com.github.javaparser.symbolsolver.resolution.typesolvers.JavaParserTypeSolver;
import com.github.javaparser.utils.CollectionStrategy;
import com.github.javaparser.utils.ProjectRoot;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;

import java.io.IOException;
import java.nio.file.*;
Expand All @@ -38,7 +38,7 @@
* for further lookups
*/
class ChildSolverCollectionStrategy implements CollectionStrategy {
private static final Logger LOG = LogManager.getLogger(ChildSolverCollectionStrategy.class);
private static final Logger LOG = XmlBeansLogManager.getLogger(ChildSolverCollectionStrategy.class);

private final ParserConfiguration config;
private final PathMatcher javaMatcher = getPathMatcher("glob:**.java");
Expand Down
Loading

0 comments on commit 89fc0e4

Please sign in to comment.