if (trace.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupRules)) { NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules); NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed); trace.info("Rule tracing on"); }
configureTraceRuleFiring();
    public static void configureTraceRuleFiringRapidTurnAround() {        if (!_initializedTraceRuleFiring) {            // otherwise not properly initialized            trace = ERXLogger.getERXLogger("er.directtoweb.rules.D2WTraceRuleFiringEnabled");            // Note: If the configuration file says debug, but the command line parameter doesn't we need to turn            //   rule tracing on.            // BOOGIE            if (trace.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupRules)) {                NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules);                NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed);                trace.info("Rule tracing on");            }            Object observer=new _Observer();            ERXRetainer.retain(observer); // has to be retained on the objC side!!            NSNotificationCenter.defaultCenter().addObserver(observer,                                                             new NSSelector("configureTraceRuleFiring",                                                                            ERXConstant.NotificationClassArray),                                                             ERXConfigurationManager.ConfigurationDidChangeNotification,                                                             null);            _initializedTraceRuleFiring = true;        }    }