diff --git a/services/git-bridge/pom.xml b/services/git-bridge/pom.xml index e2d4807083..0c09457bdc 100644 --- a/services/git-bridge/pom.xml +++ b/services/git-bridge/pom.xml @@ -119,21 +119,15 @@ 2.6 - org.slf4j - slf4j-api - 1.7.13 - - - org.slf4j - slf4j-simple - 1.7.13 + ch.qos.logback + logback-classic + 1.1.7 com.google.guava guava 19.0 - org.mock-server mockserver-netty @@ -141,5 +135,4 @@ test - - \ No newline at end of file + diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Log.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Log.java index 1cabf22bcd..f4306cf59f 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Log.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Log.java @@ -2,7 +2,6 @@ package uk.ac.ic.wlgitbridge.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.slf4j.impl.SimpleLogger; import uk.ac.ic.wlgitbridge.application.GitBridgeApp; /** @@ -10,12 +9,6 @@ import uk.ac.ic.wlgitbridge.application.GitBridgeApp; */ public class Log { - static { - System.setProperty(SimpleLogger.SHOW_DATE_TIME_KEY, "true"); - System.setProperty(SimpleLogger.DATE_TIME_FORMAT_KEY, "yyyy-MM-dd HH:mm:ss:SSS Z"); - System.setProperty(SimpleLogger.SHOW_SHORT_LOG_NAME_KEY, "true"); - } - private static Logger logger = LoggerFactory.getLogger(GitBridgeApp.class); public static void trace(String msg) { diff --git a/services/git-bridge/src/main/resources/logback.xml b/services/git-bridge/src/main/resources/logback.xml new file mode 100644 index 0000000000..6ac2904b63 --- /dev/null +++ b/services/git-bridge/src/main/resources/logback.xml @@ -0,0 +1,32 @@ + + + + System.out + + TRACE + + + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{0}: %msg%n + + + + + + System.err + + WARN + + + %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{0}: %msg%n + + + + + + + + + + + + diff --git a/services/git-bridge/writelatex-git-bridge.iml b/services/git-bridge/writelatex-git-bridge.iml index 1b57a57254..9c08c80468 100644 --- a/services/git-bridge/writelatex-git-bridge.iml +++ b/services/git-bridge/writelatex-git-bridge.iml @@ -7,10 +7,14 @@ + + + + @@ -32,6 +36,7 @@ + @@ -47,8 +52,8 @@ - - + + @@ -103,8 +108,6 @@ - -