JAMES-2456 Add logback in Tika tests
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/6ef1a295 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/6ef1a295 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/6ef1a295 Branch: refs/heads/master Commit: 6ef1a2958f8714853ed1e1b94abfab691f782822 Parents: dbe717c Author: Antoine Duprat <[email protected]> Authored: Thu Jul 5 15:41:46 2018 +0200 Committer: benwa <[email protected]> Committed: Wed Jul 11 10:28:52 2018 +0700 ---------------------------------------------------------------------- mailbox/tika/pom.xml | 5 +++++ mailbox/tika/src/test/resources/logback-test.xml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/6ef1a295/mailbox/tika/pom.xml ---------------------------------------------------------------------- diff --git a/mailbox/tika/pom.xml b/mailbox/tika/pom.xml index f926a35..d80b747 100644 --- a/mailbox/tika/pom.xml +++ b/mailbox/tika/pom.xml @@ -47,6 +47,11 @@ <artifactId>metrics-api</artifactId> </dependency> <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-classic</artifactId> + <scope>test</scope> + </dependency> + <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> http://git-wip-us.apache.org/repos/asf/james-project/blob/6ef1a295/mailbox/tika/src/test/resources/logback-test.xml ---------------------------------------------------------------------- diff --git a/mailbox/tika/src/test/resources/logback-test.xml b/mailbox/tika/src/test/resources/logback-test.xml new file mode 100644 index 0000000..f2c08d8 --- /dev/null +++ b/mailbox/tika/src/test/resources/logback-test.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + + <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> + <resetJUL>true</resetJUL> + </contextListener> + + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>%d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx</pattern> + <immediateFlush>false</immediateFlush> + </encoder> + </appender> + + <root level="INFO"> + <appender-ref ref="CONSOLE" /> + </root> + +</configuration> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
