// --------------------------------------------------------------------------------------------------------------------
//
//
//
//
// Classe obstraite pour l'utilisation de tracer
//
// --------------------------------------------------------------------------------------------------------------------
namespace Tools
{
using System;
//
/// Classe obstraite pour l'utilisation de tracer
///
public abstract class Tracer
{
#region Constructors and Destructors
///
/// Initialise une nouvelle instance de la classe .
/// Constructeur en internal, non accessible depuis une autre assembly
///
internal Tracer()
{
}
#endregion
#region Public Methods
///
/// Fabrique de tracer.
///
///
/// Non de la trace.
///
///
/// L'objet tracer fabriqué
///
public static Tracer Create(string traceName)
{
//return new NLogTracer(traceName);
return new DotNet.TraceSourceTracer(traceName);
}
///
/// Writes the error.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteError(string component, string methodProperty, string message);
///
/// Writes the error.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The exception.
///
public abstract void WriteError(string component, string methodProperty, Exception exception);
///
/// Writes the error.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
///
/// The exception
///
public abstract void WriteError(string component, string methodProperty, string message, Exception exc);
///
/// Writes the information.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteInformation(string component, string methodProperty, string message);
///
/// Writes the start operation.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteStartOperation(string component, string methodProperty, string message);
///
/// Writes the stop operation.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteStopOperation(string component, string methodProperty, string message);
///
/// Writes the verbose.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteVerbose(string component, string methodProperty, string message);
///
/// Writes the warning.
///
///
/// Name of the component.
///
///
/// Operation done.
///
///
/// The message.
///
public abstract void WriteWarning(string component, string methodProperty, string message);
#endregion
}
}