Skip to content

Commit 14477ac

Browse files
authored
SLF4J 2: update the site, add both artifacts slf4j-mock and slf4j2-mock (#162)
1 parent f7dfd39 commit 14477ac

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/site/markdown/index.md.vm

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ Contributions are welcome!
2727
How to use
2828
----------
2929

30-
First we should add `slf4j-mock` binding as dependency to our project.
30+
First we should add `slf4j-mock` binding or `slf4j2-mock` provider as dependency to our project.
31+
32+
### slf4j-mock
33+
34+
For `slf4j-api` **1.7.??** and earlier.
3135

3236
```
3337
<dependency>
@@ -38,7 +42,20 @@ First we should add `slf4j-mock` binding as dependency to our project.
3842
</dependency>
3943
```
4044

41-
We must remember that we can have only one `SLF4J` binding on classpath,
45+
### slf4j2-mock
46+
47+
For `slf4j-api` **2.0.??** and later.
48+
49+
```
50+
<dependency>
51+
<groupId>org.simplify4u</groupId>
52+
<artifactId>slf4j2-mock</artifactId>
53+
<version>${project.version}</version>
54+
<scope>test</scope>
55+
</dependency>
56+
```
57+
58+
We must remember that we can have only one `SLF4J` binding or provider on classpath,
4259
so look for dependencies like `slf4j-simple`, `slf4j-log4j12`, `slf4j-jdk14 ` or `slf4j-nop`
4360
and remove those from project when you want testing logging behavior.
4461

0 commit comments

Comments
 (0)