Skip to content

Commit

Permalink
SLF4J 2: update the site, add both artifacts slf4j-mock and slf4j2-mo…
Browse files Browse the repository at this point in the history
…ck (#162)
  • Loading branch information
vitalijr2 authored Sep 27, 2022
1 parent f7dfd39 commit 14477ac
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/site/markdown/index.md.vm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Contributions are welcome!
How to use
----------

First we should add `slf4j-mock` binding as dependency to our project.
First we should add `slf4j-mock` binding or `slf4j2-mock` provider as dependency to our project.

### slf4j-mock

For `slf4j-api` **1.7.??** and earlier.

```
<dependency>
Expand All @@ -38,7 +42,20 @@ First we should add `slf4j-mock` binding as dependency to our project.
</dependency>
```

We must remember that we can have only one `SLF4J` binding on classpath,
### slf4j2-mock

For `slf4j-api` **2.0.??** and later.

```
<dependency>
<groupId>org.simplify4u</groupId>
<artifactId>slf4j2-mock</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
```

We must remember that we can have only one `SLF4J` binding or provider on classpath,
so look for dependencies like `slf4j-simple`, `slf4j-log4j12`, `slf4j-jdk14 ` or `slf4j-nop`
and remove those from project when you want testing logging behavior.

Expand Down

0 comments on commit 14477ac

Please # to comment.