Add progression logging

This commit is contained in:
Matt Nadareski
2020-10-12 11:11:14 -07:00
parent bac43467cf
commit ff15455297
2 changed files with 96 additions and 4 deletions

View File

@@ -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
}
}