initial commit
This commit is contained in:
23
Services/IAppLogger.cs
Normal file
23
Services/IAppLogger.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user