#region Copyright & License
//
// Copyright 2001-2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion
using System;
using log4net.Appender;
namespace log4net.Core
{
///
/// Interface for attaching appenders to objects.
///
///
///
/// Interface for attaching, removing and retrieving appenders.
///
///
/// Nicko Cadell
/// Gert Driesen
public interface IAppenderAttachable
{
///
/// Attaches an appender.
///
/// The appender to add.
///
///
/// Add the specified appender. The implementation may
/// choose to allow or deny duplicate appenders.
///
///
void AddAppender(IAppender appender);
///
/// Gets all attached appenders.
///
///
/// A collection of attached appenders.
///
///
///
/// Gets a collection of attached appenders.
/// If there are no attached appenders the
/// implementation should return an empty
/// collection rather than null.
///
///
AppenderCollection Appenders {get;}
///
/// Gets an attached appender with the specified name.
///
/// The name of the appender to get.
///
/// The appender with the name specified, or null if no appender with the
/// specified name is found.
///
///
///
/// Returns an attached appender with the specified.
/// If no appender with the specified name is found null will be
/// returned.
///
///
IAppender GetAppender(string name);
///
/// Removes all attached appenders.
///
///
///
/// Removes and closes all attached appenders
///
///
void RemoveAllAppenders();
///
/// Removes the specified appender from the list of attached appenders.
///
/// The appender to remove.
/// The appender removed from the list
///
///
/// The appender removed is not closed.
/// If you are discarding the appender you must call
/// on the appender removed.
///
///
IAppender RemoveAppender(IAppender appender);
///
/// Removes the appender with the specified name from the list of appenders.
///
/// The name of the appender to remove.
/// The appender removed from the list
///
///
/// The appender removed is not closed.
/// If you are discarding the appender you must call
/// on the appender removed.
///
///
IAppender RemoveAppender(string name);
}
}