Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (48 sloc) 2.35 KB
namespace NEventStore.Logging
{
/// <summary>
/// Indicates the ability to log diagnostic information.
/// </summary>
/// <remarks>
/// Object instances which implement this interface must be designed to be multi-thread safe.
/// </remarks>
public interface ILog
{
/// <summary>
/// Logs the most detailed level of diagnostic information.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Verbose(string message, params object[] values);
/// <summary>
/// Logs the debug-level diagnostic information.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Debug(string message, params object[] values);
/// <summary>
/// Logs important runtime diagnostic information.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Info(string message, params object[] values);
/// <summary>
/// Logs diagnostic issues to which attention should be paid.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Warn(string message, params object[] values);
/// <summary>
/// Logs application and infrastructure-level errors.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Error(string message, params object[] values);
/// <summary>
/// Logs fatal errors which result in process termination.
/// </summary>
/// <param name="message">The diagnostic message to be logged.</param>
/// <param name="values">All parameter to be formatted into the message, if any.</param>
void Fatal(string message, params object[] values);
}
}