}
}
private void logEnvInfo() {
try {
Log log = LogFactory.getLog(Log4jService.class);
log.info("----------------------------------------------");
log.info("Started Logging Service");
log.debug("Log4jService created with configFileName=" + this.configurationFile +
", refreshPeriodSeconds=" + this.refreshPeriod);
log.info("Runtime Information:");
log.info(" Install Directory = " + DirectoryUtils.getGeronimoInstallDirectory().toString());
log.info(" JVM in use = " + System.getProperty("java.vendor") + " Java " + System.getProperty("java.version"));
log.info("Java Information:");
log.info(" System property [java.runtime.name] = " + System.getProperty("java.runtime.name"));
log.info(" System property [java.runtime.version] = " + System.getProperty("java.runtime.version"));
log.info(" System property [os.name] = " + System.getProperty("os.name"));
log.info(" System property [os.version] = " + System.getProperty("os.version"));
log.info(" System property [sun.os.patch.level] = " + System.getProperty("sun.os.patch.level"));
log.info(" System property [os.arch] = " + System.getProperty("os.arch"));
log.info(" System property [java.class.version] = " + System.getProperty("java.class.version"));
log.info(" System property [locale] = " + System.getProperty("user.language") + "_" + System.getProperty("user.country"));
log.info(" System property [unicode.encoding] = " + System.getProperty("sun.io.unicode.encoding"));
log.info(" System property [file.encoding] = " + System.getProperty("file.encoding"));
log.info(" System property [java.vm.name] = " + System.getProperty("java.vm.name"));
log.info(" System property [java.vm.vendor] = " + System.getProperty("java.vm.vendor"));
log.info(" System property [java.vm.version] = " + System.getProperty("java.vm.version"));
log.info(" System property [java.vm.info] = " + System.getProperty("java.vm.info"));
log.info(" System property [java.home] = " + System.getProperty("java.home"));
log.info(" System property [java.classpath] = " + System.getProperty("java.classpath"));
log.info(" System property [java.library.path] = " + System.getProperty("java.library.path"));
log.info(" System property [java.endorsed.dirs] = " + System.getProperty("java.endorsed.dirs"));
log.info(" System property [java.ext.dirs] = " + System.getProperty("java.ext.dirs"));
log.info(" System property [sun.boot.class.path] = " + System.getProperty("sun.boot.class.path"));
log.info("----------------------------------------------");
} catch (Exception e) {
System.err.println("Exception caught during logging of Runtime Information. Exception=" + e.toString());
}
}