File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ Contributions are welcome!
27
27
How to use
28
28
----------
29
29
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.
31
35
32
36
```
33
37
<dependency>
@@ -38,7 +42,20 @@ First we should add `slf4j-mock` binding as dependency to our project.
38
42
</dependency>
39
43
```
40
44
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,
42
59
so look for dependencies like `slf4j-simple`, `slf4j-log4j12`, `slf4j-jdk14 ` or `slf4j-nop`
43
60
and remove those from project when you want testing logging behavior.
44
61
You can’t perform that action at this time.
0 commit comments