org.slf4j.spi.NOPLoggingEventBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activemq-osgi Show documentation
Show all versions of activemq-osgi Show documentation
Puts together an ActiveMQ OSGi bundle
package org.slf4j.spi;
import java.util.function.Supplier;
import org.slf4j.Marker;
import org.slf4j.event.Level;
/**
* A no-operation implementation of {@link LoggingEventBuilder}.
*
* As the name indicates, the method in this class do nothing, except when a return value is expected
* in which case a singleton, i.e. the unique instance of this class is returned.
*
Returns the singleton instance of this class.
* Used by {@link org.slf4j.Logger#makeLoggingEventBuilder(Level) makeLoggingEventBuilder(Level)}.
*
* @return the singleton instance of this class
*/
public static LoggingEventBuilder singleton() {
return SINGLETON;
}
@Override
public LoggingEventBuilder addMarker(Marker marker) {
return singleton();
}
@Override
public LoggingEventBuilder addArgument(Object p) {
return singleton();
}
@Override
public LoggingEventBuilder addArgument(Supplier> objectSupplier) {
return singleton();
}
@Override
public LoggingEventBuilder addKeyValue(String key, Object value) {
return singleton();
}
@Override
public LoggingEventBuilder addKeyValue(String key, Supplier
© 2015 - 2024 Weber Informatics LLC | Privacy Policy