2025-08-17 06:02:59 +01:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Aaru.Logging;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, followed by the current line terminator, to
|
|
|
|
|
/// the standard output console using the specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
|
|
|
|
public delegate void WriteLineDelegate(string format, params object[] arg);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, followed by the current line terminator, to
|
|
|
|
|
/// the error output console using the specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
|
|
|
|
public delegate void ErrorDelegate(string format, params object[] arg);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, followed by the current line terminator, to
|
|
|
|
|
/// the verbose output console using the specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
|
|
|
|
public delegate void VerboseDelegate(string format, params object[] arg);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, to the standard output console using the
|
|
|
|
|
/// specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
|
|
|
|
public delegate void WriteDelegate(string format, params object[] arg);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, to the verbose output console using the
|
|
|
|
|
/// specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
|
|
|
|
public delegate void VerboseWriteHandler(string format, params object[] arg);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the text representation of the specified array of objects, followed by the current line terminator, to
|
|
|
|
|
/// the debug output console using the specified format information.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="module">Description of the module writing to the debug console</param>
|
|
|
|
|
/// <param name="format">A composite format string.</param>
|
|
|
|
|
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
|
2025-08-17 06:19:32 +01:00
|
|
|
public delegate void DebugDelegate(string module, string format, params object[] arg);
|
2025-08-17 06:02:59 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes the exception to the debug output console.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="ex">Exception.</param>
|
|
|
|
|
public delegate void ExceptionDelegate(Exception ex);
|