Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
SLF4J API Source Code
SLF4J API is a simple API that allows to plug in any desired logging library
at deployment time.
Here is the source code for SLF4J API 2.0.4. You can download its pre-compiled version slf4j-api-2.0.4.jar at SLF4J Download Website.
✍: FYIcenter.com
⏎ org/slf4j/spi/NOPLoggingEventBuilder.java
package org.slf4j.spi;
import java.util.function.Supplier;
import org.slf4j.Marker;
import org.slf4j.event.Level;
/**
* <p>A no-operation implementation of {@link LoggingEventBuilder}.</p>
*
* <p>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.
* </p
*
* @author Ceki Gülcü
* @since 2.0.0
*
*/
public class NOPLoggingEventBuilder implements LoggingEventBuilder {
static final NOPLoggingEventBuilder SINGLETON = new NOPLoggingEventBuilder();
private NOPLoggingEventBuilder() {
}
/**
* <p>Returns the singleton instance of this class.
* Used by {@link org.slf4j.Logger#makeLoggingEventBuilder(Level) makeLoggingEventBuilder(Level)}.</p>
*
* @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<Object> value) {
return singleton();
}
@Override
public LoggingEventBuilder setCause(Throwable cause) {
return singleton();
}
@Override
public void log() {
}
@Override
public LoggingEventBuilder setMessage(String message) {
return this;
}
@Override
public LoggingEventBuilder setMessage(Supplier<String> messageSupplier) {
return this;
}
@Override
public void log(String message) {
}
@Override
public void log(Supplier<String> messageSupplier) {
}
@Override
public void log(String message, Object arg) {
}
@Override
public void log(String message, Object arg0, Object arg1) {
}
@Override
public void log(String message, Object... args) {
}
}
⏎ org/slf4j/spi/NOPLoggingEventBuilder.java
Or download all of them as a single archive file:
File name: slf4j-api-2.0.4-sources.jar File size: 70304 bytes Release date: 2022-11-17 Download
⇒ Source Code for SLF4J Simple Logging
⇐ Downloading SLF4J Components
2020-02-13, ≈44🔥, 2💬
Popular Posts:
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module. JDK 17 JFR module compiled class files a...
JBrowser Source Code Files are provided in the source package file. You can download JBrowser source...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....