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
2020logbackVersion = 1.2.3
2121slf4jVersion = 1.7.30
2222httpClientVersion = 4.5.14
23+ log4jVersion = 2.20.0
2324
2425# Style Packages
2526findbugsAnnotationVersion = 3.0.1
Original file line number Diff line number Diff line change 11apply plugin : ' java'
22
33dependencies {
4- compile project(' :core-api' )
5- compile project(' :core-httpclient-impl' )
4+ implementation project(' :core-api' )
5+ implementation project(' :core-httpclient-impl' )
66
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
1012
11- testCompile group : ' junit' , name : ' junit' , version : ' 4.12 '
13+ testImplementation group : ' junit' , name : ' junit' , version : junitVersion
1214}
1315
1416task 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