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/event/SubstituteLoggingEvent.java
package org.slf4j.event;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Marker;
import org.slf4j.helpers.SubstituteLogger;
public class SubstituteLoggingEvent implements LoggingEvent {
Level level;
List<Marker> markers;
String loggerName;
SubstituteLogger logger;
String threadName;
String message;
Object[] argArray;
List<KeyValuePair> keyValuePairList;
long timeStamp;
Throwable throwable;
public Level getLevel() {
return level;
}
public void setLevel(Level level) {
this.level = level;
}
public List<Marker> getMarkers() {
return markers;
}
public void addMarker(Marker marker) {
if (marker == null)
return;
if (markers == null) {
markers = new ArrayList<>(2);
}
markers.add(marker);
}
public String getLoggerName() {
return loggerName;
}
public void setLoggerName(String loggerName) {
this.loggerName = loggerName;
}
public SubstituteLogger getLogger() {
return logger;
}
public void setLogger(SubstituteLogger logger) {
this.logger = logger;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Object[] getArgumentArray() {
return argArray;
}
public void setArgumentArray(Object[] argArray) {
this.argArray = argArray;
}
@Override
public List<Object> getArguments() {
if (argArray == null) {
return null;
}
return Arrays.asList(argArray);
}
public long getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(long timeStamp) {
this.timeStamp = timeStamp;
}
public String getThreadName() {
return threadName;
}
public void setThreadName(String threadName) {
this.threadName = threadName;
}
public Throwable getThrowable() {
return throwable;
}
public void setThrowable(Throwable throwable) {
this.throwable = throwable;
}
@Override
public List<KeyValuePair> getKeyValuePairs() {
return keyValuePairList;
}
}
⏎ org/slf4j/event/SubstituteLoggingEvent.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, ≈42🔥, 2💬
Popular Posts:
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
JDK 17 java.security.jgss.jmod is the JMOD file for JDK 17 Security JGSS (Java Generic Security Serv...