com.truthbean.logger.log4j2.TruthBeanLoggerContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of log4j2-bridge Show documentation
Show all versions of log4j2-bridge Show documentation
log4j2 impl by the truthbean logger framework
The newest version!
/**
* Copyright (c) 2022 TruthBean(Rogar·Q)
* Debbie is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package com.truthbean.logger.log4j2;
import org.apache.logging.log4j.spi.LoggerContext;
import org.apache.logging.log4j.spi.LoggerContextFactory;
import java.net.URI;
/**
* @author TruthBean/Rogar·Q
* @since 0.4.0
* Created on 2020-12-06 23:17
*/
public class TruthBeanLoggerContextFactory implements LoggerContextFactory {
private final LoggerContext context = new TruthBeanLoggerContext();
@Override
public LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) {
return context;
}
@Override
public LoggerContext getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) {
return context;
}
@Override
public void removeContext(LoggerContext context) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy