You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2016/07/26 07:46:55 UTC
[16/17] james-project git commit: JAMES-1804 Add logback in MPT tests
with DEBUG level on James
JAMES-1804 Add logback in MPT tests with DEBUG level on James
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/4d50f3c7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/4d50f3c7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/4d50f3c7
Branch: refs/heads/master
Commit: 4d50f3c73418abca1bb78192f824dc39ca06c647
Parents: c321b93
Author: Antoine Duprat <ad...@linagora.com>
Authored: Wed Jul 20 14:51:02 2016 +0200
Committer: Antoine Duprat <ad...@linagora.com>
Committed: Tue Jul 26 08:57:05 2016 +0200
----------------------------------------------------------------------
mpt/impl/imap-mailbox/core/pom.xml | 8 +++----
.../core/src/main/resources/logback.xml | 22 ++++++++++++++++++++
mpt/pom.xml | 6 ++++++
3 files changed, 32 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/4d50f3c7/mpt/impl/imap-mailbox/core/pom.xml
----------------------------------------------------------------------
diff --git a/mpt/impl/imap-mailbox/core/pom.xml b/mpt/impl/imap-mailbox/core/pom.xml
index 3d4c58a..e6a728f 100644
--- a/mpt/impl/imap-mailbox/core/pom.xml
+++ b/mpt/impl/imap-mailbox/core/pom.xml
@@ -61,6 +61,10 @@
<artifactId>org.apache.onami.test</artifactId>
</dependency>
<dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ </dependency>
+ <dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>
@@ -98,10 +102,6 @@
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- </dependency>
</dependencies>
</project>
http://git-wip-us.apache.org/repos/asf/james-project/blob/4d50f3c7/mpt/impl/imap-mailbox/core/src/main/resources/logback.xml
----------------------------------------------------------------------
diff --git a/mpt/impl/imap-mailbox/core/src/main/resources/logback.xml b/mpt/impl/imap-mailbox/core/src/main/resources/logback.xml
new file mode 100644
index 0000000..85ee3d4
--- /dev/null
+++ b/mpt/impl/imap-mailbox/core/src/main/resources/logback.xml
@@ -0,0 +1,22 @@
+<?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="WARN">
+ <appender-ref ref="CONSOLE" />
+ </root>
+
+ <logger name="org.apache.james" level="DEBUG"/>
+
+
+</configuration>
http://git-wip-us.apache.org/repos/asf/james-project/blob/4d50f3c7/mpt/pom.xml
----------------------------------------------------------------------
diff --git a/mpt/pom.xml b/mpt/pom.xml
index 8919f4f..48ac44d 100644
--- a/mpt/pom.xml
+++ b/mpt/pom.xml
@@ -112,6 +112,7 @@
<javax.mail.artifactId>mail</javax.mail.artifactId>
<backends.version>1.8.3-SNAPSHOT</backends.version>
<james.version>3.0.0-beta5-SNAPSHOT</james.version>
+ <logback.version>1.1.7</logback.version>
</properties>
@@ -295,6 +296,11 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>${logback.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.6.3</version>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org