public void Initialize() { if (EventLog.Exists(LOG_NAME)) EventLog.Delete(LOG_NAME); this.properties["logger_name"] = LOG_NAME; this.properties2["logger_name"] = LOG_NAME; this.properties2[DiagnosticImpl.SOURCE] = LOG_NAME; this.log = new DiagnosticImpl(this.properties2); }
protected void SetUp() { config = new DefaultConfiguration("default"); config.SetSimpleAttribute("logger_name", TestHelper.LOG_NAME); config.SetSimpleAttribute("default_level", DEFAULT_LEVEL.ToString()); config.SetSimpleAttribute("source", SOURCE); logger = new DiagnosticImpl(config); }