add OS version to log

This commit is contained in:
bancika
2012-03-18 13:39:10 +00:00
parent 880e618e30
commit 0d17046170
@@ -24,7 +24,7 @@ import org.diylc.swing.gui.TemplateDialog;
*/ */
public class DIYLCStarter { public class DIYLCStarter {
private static final Logger LOG = Logger.getLogger(Presenter.class); private static final Logger LOG = Logger.getLogger(DIYLCStarter.class);
/** /**
* @param args * @param args
@@ -39,7 +39,9 @@ public class DIYLCStarter {
LOG.error("Could not initialize log4j configuration", e); LOG.error("Could not initialize log4j configuration", e);
} }
LOG.debug("Java version: " + System.getProperty("java.runtime.version") + " by " + System.getProperty("java.vm.vendor")); LOG.debug("Java version: " + System.getProperty("java.runtime.version") + " by "
+ System.getProperty("java.vm.vendor"));
LOG.debug("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version"));
LOG.info("Starting DIYLC with working directory " + System.getProperty("user.dir")); LOG.info("Starting DIYLC with working directory " + System.getProperty("user.dir"));