diff --git a/gradle.properties b/gradle.properties index f8816af24..bd175a65f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,7 +18,7 @@ jacksonVersion = 2.13.5 jsonVersion = 20190722 jsonSimpleVersion = 1.1.1 logbackVersion = 1.2.3 -slf4jVersion = 1.7.30 +slf4jVersion = 2.0.9 httpClientVersion = 4.5.14 # Style Packages diff --git a/java-quickstart/build.gradle b/java-quickstart/build.gradle index 3e6a978f8..79141296f 100644 --- a/java-quickstart/build.gradle +++ b/java-quickstart/build.gradle @@ -7,6 +7,8 @@ dependencies { compile group: 'com.google.code.gson', name: 'gson', version: gsonVersion compile group: 'org.apache.httpcomponents', name: 'httpclient', version: httpClientVersion compile group: 'org.slf4j', name: 'slf4j-simple', version: slf4jVersion + implementation 'org.apache.logging.log4j:log4j-api:2.20.0' + implementation 'org.apache.logging.log4j:log4j-core:2.20.0' testCompile group: 'junit', name: 'junit', version: '4.12' } diff --git a/java-quickstart/src/main/resources/log4j2.properties b/java-quickstart/src/main/resources/log4j2.properties new file mode 100644 index 000000000..6d8da6d94 --- /dev/null +++ b/java-quickstart/src/main/resources/log4j2.properties @@ -0,0 +1,9 @@ + +appender.console.type = Console +appender.console.name = STDOUT +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n + +rootLogger.level = debug +rootLogger.appenderRefs = stdout +rootLogger.appenderRef.stdout.ref = STDOUT \ No newline at end of file