Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8eb887

Browse files
committed
Update README usage instructions
1 parent fe332f6 commit f8eb887

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1+
[![Build](https://github.com/avaje/avaje-applog-slf4j/actions/workflows/build.yml/badge.svg)](https://github.com/avaje/avaje-applog-slf4j/actions/workflows/build.yml)
2+
[![Maven Central](https://img.shields.io/maven-central/v/io.avaje/avaje-applog-slf4j.svg?label=Maven%20Central)](https://mvnrepository.com/artifact/io.avaje/avaje-applog-slf4j)
3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/avaje/avaje-applog-slf4j/blob/master/LICENSE)
4+
[![JDK EA](https://github.com/avaje/avaje-applog-slf4j/actions/workflows/jdk-ea.yml/badge.svg)](https://github.com/avaje/avaje-applog-slf4j/actions/workflows/jdk-ea.yml)
5+
16
# avaje-applog-slf4j
27
SLF4J provider for AppLog System.Logger
8+
9+
### Dependency
10+
11+
```xml
12+
<dependency>
13+
<groupId>io.avaje</groupId>
14+
<artifactId>avaje-applog-slf4j</artifactId>
15+
<version>1.0</version>
16+
</dependency>
17+
```
18+
19+
### How to use
20+
21+
Add the above dependency into the classpath / module-path.
22+
23+
If using module-path additionally add a requires clause into module-info:
24+
25+
```java
26+
requires io.avaje.applog.slf4j;
27+
```
28+
29+
This means that the System.Logger returned by AppLog.getLogger() uses
30+
`slf4j-api Logger` and all the log events are processed by slf4j-api.

0 commit comments

Comments
 (0)