diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/App.java')
-rwxr-xr-x | dozentenmodul/src/main/java/org/openslx/dozmod/App.java | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java index 7e13be8d..fb1f4c86 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/App.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/App.java @@ -36,9 +36,9 @@ import org.openslx.dozmod.gui.helper.I18n; import org.openslx.dozmod.gui.helper.Language; 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.AppUtil; import org.openslx.util.Util; public class App { @@ -67,7 +67,6 @@ public class App { final File logFile = new File(logFilePath); if (logFile.exists() && !logFile.isDirectory()) { // we have one, rename it to 'bwSuite.log.old' - LOGGER.info("renaming old log file"); try { File oldFile = new File(logFilePath + ".old"); oldFile.delete(); @@ -129,20 +128,6 @@ public class App { return logFilePath; } - - public static void logHeader(String logFilePath) - { - LOGGER.info("Starting logging to: " + logFilePath); - LOGGER.info(Branding.getApplicationName() + " 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 { @@ -176,7 +161,8 @@ public class App { } final String logFilePath = setupFileLogger(); - logHeader(logFilePath); + AppUtil.logHeader(LOGGER, Branding.getApplicationName(), App.class.getPackage().getImplementationVersion()); + LOGGER.info("Starting logging to " + logFilePath); // Setting the locale if (!setPreferredLanguage()) { |