File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ jsonSimpleVersion = 1.1.1
20
20
logbackVersion = 1.2.3
21
21
slf4jVersion = 1.7.30
22
22
httpClientVersion = 4.5.14
23
+ log4jVersion = 2.20.0
23
24
24
25
# Style Packages
25
26
findbugsAnnotationVersion = 3.0.1
Original file line number Diff line number Diff line change 1
1
apply plugin : ' java'
2
2
3
3
dependencies {
4
- compile project(' :core-api' )
5
- compile project(' :core-httpclient-impl' )
4
+ implementation project(' :core-api' )
5
+ implementation project(' :core-httpclient-impl' )
6
6
7
- compile group : ' com.google.code.gson' , name : ' gson' , version : gsonVersion
8
- compile group : ' org.apache.httpcomponents' , name : ' httpclient' , version : httpClientVersion
9
- compile group : ' org.slf4j' , name : ' slf4j-simple' , version : slf4jVersion
7
+ implementation group : ' com.google.code.gson' , name : ' gson' , version : gsonVersion
8
+ implementation group : ' org.apache.httpcomponents' , name : ' httpclient' , version : httpClientVersion
9
+ implementation group : ' org.apache.logging.log4j' , name : ' log4j-api' , version : log4jVersion
10
+ implementation group : ' org.apache.logging.log4j' , name : ' log4j-core' , version : log4jVersion
11
+ implementation group : ' org.apache.logging.log4j' , name : ' log4j-slf4j-impl' , version : log4jVersion
10
12
11
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12 '
13
+ testImplementation group : ' junit' , name : ' junit' , version : junitVersion
12
14
}
13
15
14
16
task runExample (type : JavaExec ) {
Original file line number Diff line number Diff line change
1
+ # Set the root logger level to INFO and its appender to the console
2
+
3
+ appender.console.type = Console
4
+ appender.console.name = STDOUT
5
+ appender.console.layout.type = PatternLayout
6
+ appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
7
+
8
+ # Specify the loggers
9
+ rootLogger.level = debug
10
+ rootLogger.appenderRef.stdout.ref = STDOUT
You can’t perform that action at this time.
0 commit comments