private static void logStartupInfo() { if (DaemonStarter.isDevelopmentMode()) { DaemonStarter.rlog.info("Running in development mode"); } else { DaemonStarter.rlog.info("Running in production mode"); } DaemonStarter.rlog.info("Running with instance id: {}", DaemonStarter.instanceId); DaemonStarter.rlog.info("Running on host: {}", DaemonStarter.hostname); }
private static void logStartupInfo() { if (DaemonStarter.isDevelopmentMode()) { DaemonStarter.rlog.info("Running in development mode"); } else { DaemonStarter.rlog.info("Running in production mode: " + DaemonStarter.startupMode.get()); } DaemonStarter.rlog.info("Running with instance id: " + DaemonStarter.instanceId); DaemonStarter.rlog.info("Running on host: " + DaemonStarter.hostname); }
private static void addProperty(final String key, final String value) { if (key == null) { return; } String trimKey = key.trim(); if (DaemonStarter.isDevelopmentMode()) { DaemonStarter.rlog.info("Setting property: '{}' with value '{}'", trimKey, value); } else { DaemonStarter.rlog.debug("Setting property: '{}' with value '{}'", trimKey, value); } DaemonStarter.daemonProperties.setProperty(trimKey, value); System.setProperty(trimKey, value); }
private static void addProperty(final String key, final String value) { if (key == null) { return; } String trimKey = key.trim(); if (DaemonStarter.isDevelopmentMode()) { DaemonStarter.rlog.info(String.format("Setting property: '%s' with value '%s'", trimKey, value)); } else { DaemonStarter.rlog.debug(String.format("Setting property: '%s' with value '%s'", trimKey, value)); } DaemonStarter.daemonProperties.setProperty(trimKey, value); System.setProperty(trimKey, value); }
this.console.activateOptions(); if (!DaemonStarter.isDevelopmentMode()) { final String fileEnabled = DaemonStarter.getDaemonProperties().getProperty(Log4jDaemonProperties.LOGGER_FILE, FALSE_STRING); final String syslogEnabled = DaemonStarter.getDaemonProperties().getProperty(Log4jDaemonProperties.LOGGER_SYSLOG, FALSE_STRING);
if (!DaemonStarter.isDevelopmentMode()) { this.darofi = new DailyRollingFileAppender(); this.darofi.setName("DAROFI");