/// <summary> /// Looks for the appender with the specified name. /// </summary> /// <param name="name">The name of the appender to lookup.</param> /// <returns> /// The appender with the specified name, or <c>null</c>. /// </returns> /// <remarks> /// <para> /// Get the named appender attached to this appender. /// </para> /// </remarks> public virtual IAppender GetAppender(string name) { lock (this) { if (m_appenderAttachedImpl == null || name == null) { return(null); } return(m_appenderAttachedImpl.GetAppender(name)); } }
/// <summary> /// Look for the appender named as <c>name</c> /// </summary> /// <param name="name">The name of the appender to lookup</param> /// <returns>The appender with the name specified, or <c>null</c>.</returns> /// <remarks> /// <para> /// Returns the named appender, or null if the appender is not found. /// </para> /// </remarks> public virtual IAppender GetAppender(string name) { m_appenderLock.AcquireReaderLock(); try { if (m_appenderAttachedImpl == null || name == null) { return(null); } return(m_appenderAttachedImpl.GetAppender(name)); } finally { m_appenderLock.ReleaseReaderLock(); } }