24 lines
866 B
C#
24 lines
866 B
C#
namespace HC_APTBS.Services
|
|
{
|
|
/// <summary>
|
|
/// Application-level structured logger.
|
|
/// Implementations write to dated files under <c>%UserProfile%\.HC_APTBS\log\</c>.
|
|
/// </summary>
|
|
public interface IAppLogger
|
|
{
|
|
/// <summary>Logs a fatal or unrecoverable error.</summary>
|
|
/// <param name="source">Class or component name (used as a prefix in the log line).</param>
|
|
/// <param name="message">Error message.</param>
|
|
void Error(string source, string message);
|
|
|
|
/// <summary>Logs a non-fatal warning.</summary>
|
|
void Warning(string source, string message);
|
|
|
|
/// <summary>Logs a normal informational message.</summary>
|
|
void Info(string source, string message);
|
|
|
|
/// <summary>Logs a verbose debug message.</summary>
|
|
void Debug(string source, string message);
|
|
}
|
|
}
|