mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 13:21:37 +02:00
Use logback so we can use two log streams
We want all logs on stdout, for debugging, and warnings and errors on stderr, for remote monitoring. The SLF4J SimpleLogger can't seem to do this, but logback does, and we can still use the same SLF4J interface.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user