mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-23 23:02:16 +00:00
29 lines
788 B
C#
29 lines
788 B
C#
namespace EightBit
|
|
{
|
|
public abstract class AbstractLogger(string context)
|
|
{
|
|
private string _context = context;
|
|
private ILogger.LogLevel _verbosity = ILogger.LogLevel.Critical;
|
|
|
|
public ILogger.LogLevel Verbosity
|
|
{
|
|
get => this._verbosity;
|
|
set => this._verbosity = value;
|
|
}
|
|
|
|
public string Context
|
|
{
|
|
get => this._context;
|
|
set => this._context = value;
|
|
}
|
|
|
|
public bool Strict
|
|
{
|
|
get => this.Verbosity < ILogger.LogLevel.Information;
|
|
set => throw new NotImplementedException("Strictness is derived from logging verbosity");
|
|
}
|
|
|
|
public abstract void Log(string context, string message, ILogger.LogLevel level);
|
|
}
|
|
}
|