added ILogger interface to support a logging output for errors etc.
gitlab issue: #9
This commit is contained in:
parent
8b0e4c5f9c
commit
b3a8530bf1
33
DataCenter_Windows/WindowsDataCenter/Interfaces/ILogger.cs
Normal file
33
DataCenter_Windows/WindowsDataCenter/Interfaces/ILogger.cs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Interfaces
|
||||||
|
{
|
||||||
|
public interface ILogger
|
||||||
|
{
|
||||||
|
bool IsDebugEnabled { get; }
|
||||||
|
bool IsErrorEnabled { get; }
|
||||||
|
bool IsFatalEnabled { get; }
|
||||||
|
bool IsInfoEnabled { get; }
|
||||||
|
bool IsTraceEnabled { get; }
|
||||||
|
bool IsWarnEnabled { get; }
|
||||||
|
|
||||||
|
void Debug(Exception exception);
|
||||||
|
void Debug(string format, params object[] args);
|
||||||
|
void Debug(Exception exception, string format, params object[] args);
|
||||||
|
void Error(Exception exception);
|
||||||
|
void Error(string format, params object[] args);
|
||||||
|
void Error(Exception exception, string format, params object[] args);
|
||||||
|
void Fatal(Exception exception);
|
||||||
|
void Fatal(string format, params object[] args);
|
||||||
|
void Fatal(Exception exception, string format, params object[] args);
|
||||||
|
void Info(Exception exception);
|
||||||
|
void Info(string format, params object[] args);
|
||||||
|
void Info(Exception exception, string format, params object[] args);
|
||||||
|
void Trace(Exception exception);
|
||||||
|
void Trace(string format, params object[] args);
|
||||||
|
void Trace(Exception exception, string format, params object[] args);
|
||||||
|
void Warn(Exception exception);
|
||||||
|
void Warn(string format, params object[] args);
|
||||||
|
void Warn(Exception exception, string format, params object[] args);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user