Replace Log.Information calls with AaruLogging.Information for consistent logging

This commit is contained in:
2025-08-17 06:59:43 +01:00
parent c120f2e5bb
commit 5d0d7bab8f
10 changed files with 79 additions and 76 deletions

View File

@@ -60,6 +60,10 @@ public static class AaruLogging
/// <summary>Event to receive exceptions to write to the debug output console.</summary>
public static event ExceptionDelegate WriteExceptionEvent;
/// <summary>Event to receive writings to the informational output console that should be followed by a line termination.</summary>
public static event InformationDelegate InformationEvent;
/// <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.
@@ -84,6 +88,14 @@ public static class AaruLogging
/// <param name="arg">An array of objects to write using <paramref name="format" />.</param>
public static void Verbose(string format, params object[] arg) => VerboseEvent?.Invoke(format, 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 static void Information(string format, params object[] arg) => InformationEvent?.Invoke(format, 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.