This project bridges standard SLF4J API to the shaded SLF4j API revealed in rocketmq-logging.
Basically, the project hijacks the implementation of the shaded SLF4J and delegates it to implement the standard SLF4j API.
- Java 1.8 or later
Add the following dependency to your project. Remember to:
- Replace
ROCKETMQ-SHADED-SLF4J-API-BRIDGE-VERSION
with the latest release .
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>io.github.aliyunmq</groupId>
<artifactId>rocketmq-shaded-slf4j-api-bridge</artifactId>
<version>ROCKETMQ-SHADED-SLF4J-API-BRIDGE-VERSION</version>
</dependency>
</dependencies>
Set the password in your settings.xml
for repositories: sonatype-nexus-snapshots-aliyunmq
and sonatype-nexus-staging-aliyunmq
, then execute the command below:
mvn clean deploy -Prelease
Sign in nexus repository manager and check the artifact, then determine whether to release it.
- rocketmq-logging: Logging for Apache RocketMQ.
- rocketmq-slf4j-api-bridge: Bridge for SLF4J API of Apache RocketMQ.
Apache License, Version 2.0 Copyright (C) Apache Software Foundation