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:
Source Code for SLF4J Bridge to JDK
SLF4J Bridge to JDK is a binding bridge that
implements the SLF4J API with JDK logging library.
Here is the source code for SLF4J Bridge to JDK. You can download its pre-compiled version slf4j-jdk14-2.0.4.jar at SLF4J Download Website.
✍:
⏎ org/slf4j/jul/JULServiceProvider.java
package org.slf4j.jul;
import org.slf4j.ILoggerFactory;
import org.slf4j.IMarkerFactory;
import org.slf4j.helpers.BasicMDCAdapter;
import org.slf4j.helpers.BasicMarkerFactory;
import org.slf4j.spi.MDCAdapter;
import org.slf4j.spi.SLF4JServiceProvider;
public class JULServiceProvider implements SLF4JServiceProvider {
/**
* Declare the version of the SLF4J API this implementation is compiled
* against. The value of this field is modified with each major release.
*/
// to avoid constant folding by the compiler, this field must *not* be final
public static String REQUESTED_API_VERSION = "2.0.99"; // !final
private ILoggerFactory loggerFactory;
private IMarkerFactory markerFactory;
private MDCAdapter mdcAdapter;
@Override
public ILoggerFactory getLoggerFactory() {
return loggerFactory;
}
@Override
public IMarkerFactory getMarkerFactory() {
return markerFactory;
}
public MDCAdapter getMDCAdapter() {
return mdcAdapter;
}
@Override
public String getRequestedApiVersion() {
return REQUESTED_API_VERSION;
}
@Override
public void initialize() {
loggerFactory = new JDK14LoggerFactory();
markerFactory = new BasicMarkerFactory();
mdcAdapter = new BasicMDCAdapter();
}
}
⏎ org/slf4j/jul/JULServiceProvider.java
Or download all of them as a single archive file:
File name: slf4j-jdk14-2.0.4-sources.jar File size: 7561 bytes Release date: 2022-11-17 Download
⇒ Source Code for SLF4J Extensions
⇐ Source Code for SLF4J Simple Logging
2021-11-30, ∼3488🔥, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...