/// <summary> /// Initialize the Logging system using the specified appender /// </summary> /// <param name="appender">the appender to use to log all logging events</param> /// <remarks> /// <para> /// This method provides the same functionality as the /// <see cref="IBasicRepositoryConfigurator.Configure"/> method implemented /// on this object, but it is protected and therefore can be called by subclasses. /// </para> /// </remarks> protected void BasicRepositoryConfigure(Library.Logging.Appender.IAppender appender) { Root.AddAppender(appender); Configured = true; // Notify listeners OnConfigurationChanged(null); }
/// <summary> /// Initialize the Logging system using the specified appender /// </summary> /// <param name="appender">the appender to use to log all logging events</param> void IBasicRepositoryConfigurator.Configure(Library.Logging.Appender.IAppender appender) { BasicRepositoryConfigure(appender); }
/// <summary> /// Collect the appenders from an <see cref="IAppenderAttachable"/>. /// The appender may also be a container. /// </summary> /// <param name="appenderList"></param> /// <param name="appender"></param> private static void CollectAppender(System.Collections.ArrayList appenderList, Library.Logging.Appender.IAppender appender) { if (!appenderList.Contains(appender)) { appenderList.Add(appender); IAppenderAttachable container = appender as IAppenderAttachable; if (container != null) { CollectAppenders(appenderList, container); } } }