mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add progression logging
This commit is contained in:
@@ -44,6 +44,17 @@ namespace SabreTools.Library.Logging
|
||||
LoggerImpl.Verbose(this.instance, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given verbose progress message to the log output
|
||||
/// </summary>
|
||||
/// <param name="total">Total count for progress</param>
|
||||
/// <param name="current">Current count for progres</param>
|
||||
/// <param name="output">String to be written log</param>
|
||||
public void Verbose(long total, long current, string output = null)
|
||||
{
|
||||
LoggerImpl.Verbose(instance, total, current, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given exception as a user message to the log output
|
||||
/// </summary>
|
||||
@@ -65,6 +76,17 @@ namespace SabreTools.Library.Logging
|
||||
LoggerImpl.User(this.instance, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given user progress message to the log output
|
||||
/// </summary>
|
||||
/// <param name="total">Total count for progress</param>
|
||||
/// <param name="current">Current count for progres</param>
|
||||
/// <param name="output">String to be written log</param>
|
||||
public void User(long total, long current, string output = null)
|
||||
{
|
||||
LoggerImpl.User(instance, total, current, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given exception as a warning to the log output
|
||||
/// </summary>
|
||||
@@ -86,6 +108,17 @@ namespace SabreTools.Library.Logging
|
||||
LoggerImpl.Warning(this.instance, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given warning progress message to the log output
|
||||
/// </summary>
|
||||
/// <param name="total">Total count for progress</param>
|
||||
/// <param name="current">Current count for progres</param>
|
||||
/// <param name="output">String to be written log</param>
|
||||
public void Warning(long total, long current, string output = null)
|
||||
{
|
||||
LoggerImpl.Warning(instance, total, current, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the given exception as an error in the log
|
||||
/// </summary>
|
||||
@@ -107,6 +140,17 @@ namespace SabreTools.Library.Logging
|
||||
LoggerImpl.Error(this.instance, output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the given error progress message to the log output
|
||||
/// </summary>
|
||||
/// <param name="total">Total count for progress</param>
|
||||
/// <param name="current">Current count for progres</param>
|
||||
/// <param name="output">String to be written log</param>
|
||||
public void Error(long total, long current, string output = null)
|
||||
{
|
||||
LoggerImpl.Error(instance, total, current, output);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user