Ejemplo n.º 1
0
        /// <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);
        }