From b6daa30fba23c278142a02a1dbc13ada70e9586e Mon Sep 17 00:00:00 2001 From: cagache Date: Thu, 11 Apr 2019 17:09:40 +0300 Subject: [PATCH] Added slf4j-log4j12 dependency to automation community rest api project and log4j.properties file because logs didn't work on rest api tests after moving to OpenJdk 11 --- rm-automation/rm-automation-community-rest-api/pom.xml | 6 ++++++ .../src/test/resources/log4j.properties | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 rm-automation/rm-automation-community-rest-api/src/test/resources/log4j.properties diff --git a/rm-automation/rm-automation-community-rest-api/pom.xml b/rm-automation/rm-automation-community-rest-api/pom.xml index 66be754b6e..2d10b64cb6 100644 --- a/rm-automation/rm-automation-community-rest-api/pom.xml +++ b/rm-automation/rm-automation-community-rest-api/pom.xml @@ -45,6 +45,12 @@ + + org.slf4j + slf4j-log4j12 + 1.7.26 + test + org.alfresco.tas restapi-test diff --git a/rm-automation/rm-automation-community-rest-api/src/test/resources/log4j.properties b/rm-automation/rm-automation-community-rest-api/src/test/resources/log4j.properties new file mode 100644 index 0000000000..93c931c03c --- /dev/null +++ b/rm-automation/rm-automation-community-rest-api/src/test/resources/log4j.properties @@ -0,0 +1,7 @@ +log4j.rootLogger=info, console + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n + +log4j.logger.com.example=debug \ No newline at end of file