Package net.i2p.jetty
Class I2PLoggingServiceProvider
java.lang.Object
net.i2p.jetty.I2PLoggingServiceProvider
- All Implemented Interfaces:
org.slf4j.spi.SLF4JServiceProvider
An SLF4J Service Provider logging to router log with levels,
replacing Jetty's Service Provider that logs to stderr
(wrapper log).
As this is a SLF4JServiceProvider, it requires SLF4J 2.0.x.
It is enabled by setting the environment as follows:
System.setProperty("slf4j.provider", "net.i2p.jetty.I2PLoggingServiceProvider");
We do this in RouterConsoleRunner and in i2psnark RunStandalone.- Since:
- Jetty 12
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.ILoggerFactoryorg.slf4j.IMarkerFactoryorg.slf4j.spi.MDCAdaptervoid
-
Constructor Details
-
I2PLoggingServiceProvider
public I2PLoggingServiceProvider()
-
-
Method Details
-
getLoggerFactory
public org.slf4j.ILoggerFactory getLoggerFactory()- Specified by:
getLoggerFactoryin interfaceorg.slf4j.spi.SLF4JServiceProvider
-
getMarkerFactory
public org.slf4j.IMarkerFactory getMarkerFactory()- Specified by:
getMarkerFactoryin interfaceorg.slf4j.spi.SLF4JServiceProvider
-
getMDCAdapter
public org.slf4j.spi.MDCAdapter getMDCAdapter()- Specified by:
getMDCAdapterin interfaceorg.slf4j.spi.SLF4JServiceProvider
-
getRequestedApiVersion
- Specified by:
getRequestedApiVersionin interfaceorg.slf4j.spi.SLF4JServiceProvider
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.slf4j.spi.SLF4JServiceProvider
-