Permalink
Browse files

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

Was causing a deadlock on Flush().
  • Loading branch information...
1 parent a4d93e3 commit e58867547be4fc1ff9a1c484d723b3ae12d7333e @jkowalski committed Oct 31, 2011
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;

0 comments on commit e588675

Please sign in to comment.