MCPcopy
hub / github.com/qos-ch/slf4j

github.com/qos-ch/slf4j @v_2.0.18 sqlite

repository ↗ · DeepWiki ↗ · release v_2.0.18 ↗ · compare 3 versions
1,702 symbols 5,176 edges 263 files 531 documented · 31%
README

About SLF4J

The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java.util.logging, logback, reload4j, log4j 2.x, logevents, penna, rainbowgum, tinylog) allowing the end user to plug in the desired logging framework at deployment time.

More information can be found on the SLF4J website.

Search org.slf4j artifacts on Maven Central

Maven Central

In case of problems

In case of problems please do not hesitate to post an e-mail message on the slf4j-user@qos.ch mailing list or to start a discussion on github. However, please do not directly e-mail SLF4J developers. The answer to your question might be useful to other users. Moreover, there are many knowledgeable users on the slf4j-user mailing lists who can quickly answer your questions.

Urgent issues

For urgent issues do not hesitate to champion a release. In principle, most championed issues are solved within 3 business days ensued by a release.

How to build SLF4J

SLF4J uses Maven as its build tool.

SLF4J version 2.0.x will run under Java 8 but requires Java 9 or later to build.

How to contribute pull requests

If you are interested in improving SLF4J, that is great! The SLF4J community looks forward to your contribution. Please follow this process:

  1. Start a discussion on the slf4j-dev mailing list about your proposed change. Alternately, file a bug report on github to initiate the discussion.

  2. Fork qos-ch/slf4j. Ideally, create a new branch from your fork for your contribution to make it easier to merge your changes back.

  3. Make your changes on the branch created in Step 2. Be sure that your code passes existing unit tests. Please add unit tests for your work if appropriate. It usually is.

  4. All commits must have signed off by the contributor attesting to Developer Certificate of Origin (DCO). Commits without sign off will be automatically rejected by the DCO GitHub check application.

  5. Push your changes to your fork/branch in GitHub. Don't push it to your master! If you do, it will make it harder to submit new changes later.

  6. Submit a pull request to SLF4J from your commit page on GitHub.

Extension points exported contracts — how you extend this code

Log (Interface)
A simple logging interface abstracting logging APIs. In order to be instantiated successfully by LogFactory, [8 implementers]
jcl-over-slf4j/src/main/java/org/apache/commons/logging/Log.java
Logger (Interface)
The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that logging takes place throug [9 …
slf4j-api/src/main/java/org/slf4j/Logger.java
TimeInstrument (Interface)
This interface sets the methods that must be implemented by Profiler and StopWatch classes. It settles [4 implementers]
slf4j-ext/src/main/java/org/slf4j/profiler/TimeInstrument.java
Configurator (Interface)
Implemented by classes capable of configuring log4j using a URL. @since 1.0 @author Anders Kristensen [4 implementers]
log4j-over-slf4j/src/main/java/org/apache/log4j/spi/Configurator.java
RuleSet (Interface)
(no doc) [11 implementers]
slf4j-migrator/src/main/java/org/slf4j/migrator/line/RuleSet.java
ILoggerFactory (Interface)
ILoggerFactory instances manufacture Logger instances by name. Most users retrieve {@link Logge [18 implementers]
slf4j-api/src/main/java/org/slf4j/ILoggerFactory.java
OptionHandler (Interface)
(no doc) [3 implementers]
log4j-over-slf4j/src/main/java/org/apache/log4j/spi/OptionHandler.java
ProgressListener (Interface)
(no doc) [4 implementers]
slf4j-migrator/src/main/java/org/slf4j/migrator/internal/ProgressListener.java

Core symbols most depended-on inside this repo

get
called by 131
slf4j-api/src/main/java/org/slf4j/spi/MDCAdapter.java
log
called by 106
slf4j-ext/src/main/java/org/slf4j/profiler/TimeInstrument.java
info
called by 105
slf4j-api/src/main/java/org/slf4j/Logger.java
debug
called by 102
slf4j-api/src/main/java/org/slf4j/Logger.java
add
called by 96
slf4j-api/src/main/java/org/slf4j/Marker.java
getMessage
called by 92
slf4j-api/src/main/java/org/slf4j/event/LoggingEvent.java
error
called by 85
slf4j-api/src/main/java/org/slf4j/Logger.java
warn
called by 80
slf4j-api/src/main/java/org/slf4j/Logger.java

Shape

Method 1,429
Class 239
Interface 24
Enum 10

Languages

Java100%

Modules by API surface

slf4j-api/src/test/java/org/slf4j/eventTest/EventRecordingLoggerTest.java35 symbols
slf4j-api/src/main/java/org/slf4j/helpers/SubstituteLogger.java30 symbols
log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java30 symbols
slf4j-api/src/main/java/org/slf4j/LoggerFactory.java28 symbols
slf4j-migrator/src/main/java/org/slf4j/migrator/internal/MigratorFrame.java26 symbols
slf4j-api/src/main/java/org/slf4j/event/DefaultLoggingEvent.java23 symbols
jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/SimpleLog.java23 symbols
slf4j-ext/src/main/java/org/slf4j/profiler/Profiler.java22 symbols
slf4j-api/src/main/java/org/slf4j/event/SubstituteLoggingEvent.java21 symbols
slf4j-simple/src/main/java/org/slf4j/simple/SimpleLogger.java20 symbols
slf4j-api/src/main/java/org/slf4j/MDC.java20 symbols
slf4j-api/src/main/java/org/slf4j/Logger.java20 symbols

Dependencies from manifests, versioned

ant:ant-junit
ch.qos.cal10n:cal10n-api
ch.qos.reload4j:reload4j
javassist:javassist3.4.GA · 1×
junit:junit
org.apache.ant:ant-junit
org.apache.felix:org.apache.felix.main5.6.1 · 1×
org.osgi:org.osgi.core4.2.0 · 1×
org.osgi:org.osgi.enterprise4.2.0 · 1×
org.slf4j:jcl-over-slf4j
org.slf4j:jul-to-slf4j
org.slf4j:log4j-over-slf4j

For agents

$ claude mcp add slf4j \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact