DTLib/DTLib.Logging/Loggers/ILogger.cs
2022-11-17 22:07:15 +06:00

15 lines
441 B
C#

namespace DTLib.Logging.New;
public interface ILogger : IDisposable
{
ILogFormat Format { get; }
bool DebugLogEnabled { get; set; }
bool InfoLogEnabled { get; set; }
bool WarnLogEnabled { get; set; }
bool ErrorLogenabled { get; set; }
void Log(string context, LogSeverity severity, object message);
void Log(string context, LogSeverity severity, object message, ILogFormat format);
}