String source = System.getProperty(SmartFrogCoreProperty.propLogStackTrace); if ("true".equals(source)) { Logger.logStackTrace = true; if (SFSystem.sfLog().isWarnEnabled()) { SFSystem.sfLog().warn(MessageUtil. formatMessage(MSG_WARNING_STACKTRACE_ENABLED));
ComponentDescription configuration = null;  try { configuration = ComponentDescriptionImpl.getClassComponentDescription("org.smartfrog.sfcore.common.Logger", true, null); if (configuration!=null){ logStackTrace = configuration.sfResolve(ATR_LOG_STACK_TRACE,logStackTrace,false); logLiveness = configuration.sfResolve(ATR_LOG_LIVENESS,logLiveness,false); processCompoundDiagReport = configuration.sfResolve(ATR_LOG_PC_DIAG_REPORT,processCompoundDiagReport,false);
    public static synchronized void  init() {        if (initialized) return;        /**         * Reads System property "org.smartfrog.logger.logStrackTrace" and         * updates Logger with the value to enable stack tracing.         */        String source = System.getProperty(SmartFrogCoreProperty.propLogStackTrace);        if ("true".equals(source)) {            Logger.logStackTrace = true;            if (SFSystem.sfLog().isWarnEnabled()) {              SFSystem.sfLog().warn(MessageUtil.                    formatMessage(MSG_WARNING_STACKTRACE_ENABLED));            }        }        /**         * Reads System property "org.smartfrog.logger.logLiveness" and         * updates Logger with the value to enable sfPing tracing.         */        source="false";        source = System.getProperty(SmartFrogCoreProperty.propLogLiveness);        if ("true".equals(source)) {            Logger.logLiveness = true;            if (SFSystem.sfLog().isWarnEnabled()) {              SFSystem.sfLog().warn(MessageUtil.                    formatMessage(MSG_WARNING_LIVENESS_ENABLED));            }        }        /**         * Reads System property "org.smartfrog.logger.processCompoundDiagnosticsReport" and         * updates Logger with the value to create diagnostics report in         * every ProcessCompound.         */        source="false";        source = System.getProperty(SmartFrogCoreProperty.processCompoundDiagnosticsReport);        if ("true".equals(source)) {            Logger.processCompoundDiagReport = true;        }        initialized = true;    }