JAMES-1739 allow override of logback configuration from conf
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/583d132e Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/583d132e Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/583d132e Branch: refs/heads/master Commit: 583d132e8f57932514eeb9666152d9824e47b870 Parents: 8d7c8ed Author: Matthieu Baechler <[email protected]> Authored: Wed May 18 17:16:17 2016 +0200 Committer: Matthieu Baechler <[email protected]> Committed: Wed May 18 17:16:17 2016 +0200 ---------------------------------------------------------------------- dockerfiles/run/guice/Dockerfile | 2 +- .../run/guice/destination/conf/logback.xml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/583d132e/dockerfiles/run/guice/Dockerfile ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/Dockerfile b/dockerfiles/run/guice/Dockerfile index cd03111..e2176ce 100644 --- a/dockerfiles/run/guice/Dockerfile +++ b/dockerfiles/run/guice/Dockerfile @@ -24,4 +24,4 @@ ADD destination/james-server-cli-3.0.0-beta5-SNAPSHOT.jar /root/james-cli.jar ADD destination/james-server-cli-3.0.0-beta5-SNAPSHOT.lib /root/james-server-cli-3.0.0-beta5-SNAPSHOT.lib ADD destination/conf /root/conf -ENTRYPOINT java -Dworking.directory=/root/ -jar james-server.jar +ENTRYPOINT java -Dlogback.configurationFile=/root/conf/logback.xml -Dworking.directory=/root/ -jar james-server.jar http://git-wip-us.apache.org/repos/asf/james-project/blob/583d132e/dockerfiles/run/guice/destination/conf/logback.xml ---------------------------------------------------------------------- diff --git a/dockerfiles/run/guice/destination/conf/logback.xml b/dockerfiles/run/guice/destination/conf/logback.xml new file mode 100644 index 0000000..f2c08d8 --- /dev/null +++ b/dockerfiles/run/guice/destination/conf/logback.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]
