mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Replace Log.Information calls with AaruLogging.Information for consistent logging
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user