// Copyright 2003-2004 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. namespace Apache.Avalon.Composition.Logging { using System; /// A logging target descriptor. /// ///

XML

/// A logging target declares target name and a logging mechanism.

/// ///
	/// <target name="kernel">
	/// <file location="kernel.log" />
	/// </target>
	/// 
/// ///
/// Avalon Development Team /// /// $Revision: 1.2 $ $Date: 2004/02/28 22:15:37 $ /// [Serializable] public sealed class TargetDescriptor { /// The target name. private System.String m_name; /// The target provider descriptor. private TargetProvider m_provider; /// Create a LoggingDescriptor instance. /// /// /// the target name /// /// the target provider description /// public TargetDescriptor(System.String name, TargetProvider provider) { m_name = name; m_provider = provider; } /// Return the target name. /// /// /// the target name. /// public System.String Name { get { return m_name; } } /// Return the target provider descriptor /// /// /// the provider descriptor /// public TargetProvider Provider { get { return m_provider; } } } }