
psiprobe.tools.logging.logback.LogbackLoggerAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of psi-probe-core Show documentation
Show all versions of psi-probe-core Show documentation
PSI Probe Core - Core logic, data models, and controllers
/*
* 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.logback;
import com.google.common.collect.Iterators;
import java.util.ArrayList;
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 Logback logger.
*/
public class LogbackLoggerAccessor extends DefaultAccessor {
/**
* Returns all appenders of this logger.
*
* @return a list of {@link LogbackAppenderAccessor}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