From baa2514d682d1c41da86f1c3cc34bd4fc132c8c5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 31 Jul 2017 17:13:37 +0200 Subject: [client] Log detailed runtime information on app startup --- dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'dozentenmodul/src/main/java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index c2098491..292725c8 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -29,6 +29,7 @@ import org.openslx.dozmod.gui.Gui; import org.openslx.dozmod.gui.MainWindow; import org.openslx.dozmod.gui.helper.MessageType; import org.openslx.dozmod.util.ClientVersion; +import org.openslx.dozmod.util.FormatHelper; import org.openslx.dozmod.util.ProxyConfigurator; import org.openslx.thrifthelper.ThriftManager; import org.openslx.util.Util; @@ -100,6 +101,9 @@ public class App { @Override protected void append(LoggingEvent event) { + // TODO Set up filtering properly + if ("org.apache.http.wire".equals(event.getLoggerName())) + return; String s = event.getRenderedMessage(); if (s.contains("uthorization")) { Matcher m = re.matcher(s); @@ -115,7 +119,16 @@ public class App { }; BasicConfigurator.configure(ap); - LOGGER.info("Starting logging to: " + logFilePath); + LOGGER.info("Starting logging to: " + logFilePath); + LOGGER.info("bwLehrpool-Suite Version: " + ClientVersion.getLocalRevision()); + LOGGER.info(" " + FormatHelper.longDate(ClientVersion.getLocalRevTimestamp())); + LOGGER.info("os.name: " + System.getProperty("os.name")); + LOGGER.info("java.specification.vendor: " + System.getProperty("java.specification.vendor")); + LOGGER.info("java.specification.name: " + System.getProperty("java.specification.name")); + LOGGER.info("java.specification.version: " + System.getProperty("java.specification.version")); + LOGGER.info("java.version: " + System.getProperty("java.version")); + LOGGER.info("java.vm.version: " + System.getProperty("java.vm.version")); + LOGGER.info("java.runtime.version: " + System.getProperty("java.runtime.version")); } public static void main(final String[] args) throws InvocationTargetException, InterruptedException { -- cgit v1.2.3-55-g7522