Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/log4net/Core/LoggerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ public static ILogger GetLogger(Assembly repositoryAssembly, Type type)
/// </remarks>
public static void Shutdown()
{
//Cleanup event handlers since they only call this mathod anyways
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//Cleanup event handlers since they only call this mathod anyways
// Cleanup event handlers since they only call this method anyways

AppDomain.CurrentDomain.ProcessExit -= OnProcessExit;
AppDomain.CurrentDomain.DomainUnload -= OnDomainUnload;

foreach (ILoggerRepository repository in GetAllRepositories())
{
repository.Shutdown();
Expand Down Expand Up @@ -572,4 +576,4 @@ private static string GetVersionInfo()
/// log message.
/// </remarks>
private static readonly Type _declaringType = typeof(LoggerManager);
}
}