Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disabled automatic flush at the end of appdomain unload under Mono.

Was causing a deadlock on Flush().
  • Loading branch information...
commit e58867547be4fc1ff9a1c484d723b3ae12d7333e 1 parent a4d93e3
@jkowalski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/NLog/LogManager.cs
View
4 src/NLog/LogManager.cs
@@ -47,7 +47,7 @@ public sealed class LogManager
{
private static readonly LogFactory globalFactory = new LogFactory();
-#if !NET_CF && !SILVERLIGHT
+#if !NET_CF && !SILVERLIGHT && !MONO
/// <summary>
/// Initializes static members of the LogManager class.
/// </summary>
@@ -290,7 +290,7 @@ public static bool IsLoggingEnabled()
return globalFactory.IsLoggingEnabled();
}
-#if !NET_CF && !SILVERLIGHT
+#if !NET_CF && !SILVERLIGHT && !MONO
private static void SetupTerminationEvents()
{
AppDomain.CurrentDomain.ProcessExit += TurnOffLogging;
Please sign in to comment.
Something went wrong with that request. Please try again.