public void TestFixtureSetUp() { debugAppender = new DebugAppender(); debugAppender.ActivateOptions(); asyncForwardingAppender = new ParallelForwardingAppender(); asyncForwardingAppender.AddAppender(debugAppender); asyncForwardingAppender.ActivateOptions(); repository = LogManager.CreateRepository(Guid.NewGuid().ToString()); BasicConfigurator.Configure(repository, asyncForwardingAppender); log = LogManager.GetLogger(repository.Name, "TestLogger"); }
public void TestFixtureSetUp() { debugAppender = new DebugAppender(); debugAppender.ActivateOptions(); asyncForwardingAppender = new ParallelForwardingAppender(); asyncForwardingAppender.AddAppender(debugAppender); asyncForwardingAppender.ActivateOptions(); repository = LogManager.CreateRepository(Guid.NewGuid().ToString()); BasicConfigurator.Configure(repository, asyncForwardingAppender); log = LogManager.GetLogger(repository.Name, "TestLogger"); }
protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { if (asyncForwardingAppender != null) { asyncForwardingAppender.Dispose(); asyncForwardingAppender = null; } } // Free your own state (unmanaged objects). // Set large fields to null. _disposed = true; } }
protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { if (asyncForwardingAppender != null) { asyncForwardingAppender.Dispose(); asyncForwardingAppender = null; } } // Free your own state (unmanaged objects). // Set large fields to null. _disposed = true; } }