mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Simplify naming of AaruConsole methods.
This commit is contained in:
66
Aaru.Logging/Delegates.cs
Normal file
66
Aaru.Logging/Delegates.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
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, to the debug 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 DebugDelegate(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>
|
||||
public delegate void DebugWithModuleDelegate(string module, string format, params object[] arg);
|
||||
|
||||
/// <summary>
|
||||
/// Writes the exception to the debug output console.
|
||||
/// </summary>
|
||||
/// <param name="ex">Exception.</param>
|
||||
public delegate void ExceptionDelegate(Exception ex);
|
||||
Reference in New Issue
Block a user