public static void ApplyDefaultsForWindowedApplication() { TeeLogger root = new TeeLogger(); Logger = root; root.Loggers.AddRange ( new IAmLogger[] { new TraceLogger() } ); }
/// <summary> /// Apply defaults for console application. /// </summary> public static void ApplyDefaultsForWindowedApplication() { #if CLASSIC || DESKTOP TeeLogger root = new TeeLogger(); Logger = root; root.Loggers.AddRange ( new IAmLogger[] { new TraceLogger() } ); #endif }
/// <summary> /// Apply defaults for console application. /// </summary> public static void ApplyDefaultsForConsoleApplication() { #if CLASSIC || DESKTOP || NETCORE TeeLogger root = new TeeLogger(); Logger = root; root.Loggers.AddRange ( new IAmLogger[] { new ConsoleLogger(), new TraceLogger() } ); #endif }