![JAR search and dependency download from the Maven repository](/logo.png)
psiprobe.tools.logging.slf4jlogback13.TomcatSlf4jLogback13LoggerAccessor Maven / Gradle / Ivy
/*
* Licensed under the GPL License. You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
* WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE.
*/
package psiprobe.tools.logging.slf4jlogback13;
import com.google.common.collect.Iterators;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang3.reflect.MethodUtils;
import psiprobe.tools.logging.DefaultAccessor;
/**
* A wrapper for a TomcatSlf4jLogback logger.
*/
public class TomcatSlf4jLogback13LoggerAccessor extends DefaultAccessor {
/**
* Returns all appenders of this logger.
*
* @return a list of {@link TomcatSlf4jLogback13AppenderAccessor}s
*/
@SuppressWarnings("unchecked")
public List getAppenders() {
List appenders = new ArrayList<>();
try {
for (Object appender : Collections.list(Iterators.asEnumeration(
(Iterator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy