Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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, 26781👍, 2💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
pache Derby is an open source relational database implemented entirely in Java and available under t...