static ILog initializeFacade() { ILog result = Log4NetLogger.Initialize() ?? TraceLogger.Initialize() ?? NoOpLogger.Initialize(); result.Info(Util.DotNetOpenIdVersion); return(result); }
/// <summary> /// Discovers the presence of Log4net.dll and other logging mechanisms /// and returns the best available logger. /// </summary> /// <param name="name">The name of the log to initialize.</param> /// <returns>The <see cref="ILog"/> instance of the logger to use.</returns> private static ILog InitializeFacade(string name) { ILog result = Log4NetLogger.Initialize(name) ?? NLogLogger.Initialize(name) ?? TraceLogger.Initialize(name) ?? NoOpLogger.Initialize(); return(result); }
/// <summary> /// Discovers the presence of Log4net.dll and other logging mechanisms /// and returns the best available logger. /// </summary> /// <param name="name">The name of the log to initialize.</param> /// <returns>The <see cref="ILog"/> instance of the logger to use.</returns> private static ILog InitializeFacade(string name) { ILog result = Log4NetLogger.Initialize(name) ?? TraceLogger.Initialize(name) ?? NoOpLogger.Initialize(); result.Info(Util.LibraryVersion); return(result); }
internal static ILog initializeFacade() { ILog result = Log4NetLogger.Initialize() ?? TraceLogger.Initialize() ?? NoOpLogger.Initialize(); return(result); }
/// <summary> /// Discovers the presence of Log4net.dll and other logging mechanisms /// and returns the best available logger. /// </summary> /// <param name="name">The name of the log to initialize.</param> /// <returns>The <see cref="ILog"/> instance of the logger to use.</returns> private static ILog InitializeFacade(string name) { ILog result = DotNetOpenAuthConfiguration.Logger ?? NoOpLogger.Initialize(); return result; }