SL 3.0: LogManager initialization when not running in HTMLPage

Jan 9, 2010 at 11:00 PM

The following code in LogManager.cs


static LogManager() { try { UISynchronizationContext.Instance.Initialize(); } catch (Exception ex) { string errorMessage = string.Format("Unable to initialize UISynchronizationContext: {0} {1}{2}", ex, Environment.NewLine, ex.StackTrace); Console.WriteLine(errorMessage); //OnInternalMessage(new InternalMessageEventArgs(errorMessage, ex)); } // Application.Current.Startup += OnApplicationStartup; }

 

causes a lot of noise in Resharper unit test runner output even though I am not logging anything, but merely have a reference to LogManager in my code:

    public class log_manager
{
public static bool enable_logging
{
get;
set;
}

public static ILog log( string name )
{
if ( enable_logging )
{
var log = LogManager.GetLog( name );
return log;
}
else
return new null_log( name );
}
}
Coordinator
Jan 9, 2010 at 11:53 PM

By chance that was removed in the last checkin I did today.

 

Jan 11, 2010 at 10:38 AM

Great.  But I seem to be unable to find where the repository is (http://clog.codeplex.com/SourceControl/list/changesets is empty).

Coordinator
Jan 11, 2010 at 10:53 AM

Latest source is available at http://calcium.codeplex.com