This project bridges the SLF4j API revealed in rocketmq-logging to standard SLF4J API.
Basically, the project hijacks the implementation of standard SLF4J and delegates it to implement the SLF4J API of Apache RocketMQ.
- Java 1.8 or later
Add the following dependency to your project. Remember to:
- Replace
ROCKETMQ-LOGGING-VERSION
with the latest release. - Replace
ROCKETMQ-SLF4J-API-BRIDGE-VERSION
with the latest release.
<dependencies>
<dependency>
<groupId>io.github.aliyunmq</groupId>
<artifactId>rocketmq-slf4j-api</artifactId>
<version>ROCKETMQ-LOGGING-VERSION</version>
</dependency>
<dependency>
<groupId>io.github.aliyunmq</groupId>
<artifactId>rocketmq-slf4j-api-bridge</artifactId>
<version>ROCKETMQ-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-shaded-slf4j-api-bridge: Bridge for Shaded SLF4J API of Apache RocketMQ.
Apache License, Version 2.0 Copyright (C) Apache Software Foundation