File tree 5 files changed +20
-13
lines changed
java/org/openapitools/openapidiff/cli
5 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 31
31
<artifactId >slf4j-api</artifactId >
32
32
</dependency >
33
33
<dependency >
34
- <groupId >org.slf4j </groupId >
35
- <artifactId >slf4j-log4j12 </artifactId >
34
+ <groupId >ch.qos.logback </groupId >
35
+ <artifactId >logback-classic </artifactId >
36
36
</dependency >
37
37
</dependencies >
38
38
<build >
Original file line number Diff line number Diff line change 1
1
package org .openapitools .openapidiff .cli ;
2
2
3
+ import ch .qos .logback .classic .Level ;
3
4
import io .swagger .v3 .parser .core .models .AuthorizationValue ;
4
5
import java .io .File ;
5
6
import java .io .IOException ;
15
16
import org .apache .commons .cli .ParseException ;
16
17
import org .apache .commons .io .FileUtils ;
17
18
import org .apache .commons .lang3 .exception .ExceptionUtils ;
18
- import org .apache .log4j .Level ;
19
- import org .apache .log4j .LogManager ;
20
19
import org .openapitools .openapidiff .core .OpenApiCompare ;
21
20
import org .openapitools .openapidiff .core .model .ChangedOpenApi ;
22
21
import org .openapitools .openapidiff .core .output .ConsoleRender ;
@@ -157,7 +156,9 @@ public static void main(String... args) {
157
156
if (line .hasOption ("state" )) {
158
157
logLevel = "OFF" ;
159
158
}
160
- LogManager .getRootLogger ().setLevel (Level .toLevel (logLevel ));
159
+ ch .qos .logback .classic .Logger root =
160
+ (ch .qos .logback .classic .Logger ) LoggerFactory .getLogger (Logger .ROOT_LOGGER_NAME );
161
+ root .setLevel (Level .toLevel (logLevel ));
161
162
162
163
if (line .getArgList ().size () < 2 ) {
163
164
throw new ParseException ("Missing arguments" );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <configuration >
2
+ <appender name =" STDOUT" class =" ch.qos.logback.core.ConsoleAppender" >
3
+ <encoder >
4
+ <pattern >[%thread] %-5level %logger{36} - %msg%n</pattern >
5
+ </encoder >
6
+ </appender >
7
+
8
+ <root level =" debug" >
9
+ <appender-ref ref =" STDOUT" />
10
+ </root >
11
+ </configuration >
Original file line number Diff line number Diff line change 142
142
<version >${slf4j.version} </version >
143
143
</dependency >
144
144
<dependency >
145
- <groupId >org.slf4j </groupId >
146
- <artifactId >slf4j-log4j12 </artifactId >
147
- <version >${slf4j.version} </version >
145
+ <groupId >ch.qos.logback </groupId >
146
+ <artifactId >logback-classic </artifactId >
147
+ <version >1.2.10 </version >
148
148
</dependency >
149
149
<dependency >
150
150
<groupId >commons-httpclient</groupId >
You can’t perform that action at this time.
0 commit comments