add proper logger, saves to file as well

This commit is contained in:
Master
2023-10-14 19:39:26 +02:00
parent a2e27effff
commit 239c4fca32
17 changed files with 402 additions and 140 deletions

18
AscNet.Logging/ILogger.cs Normal file
View File

@@ -0,0 +1,18 @@
namespace AscNet.Logging
{
public interface ILogger
{
void Debug(string message, string memberName = "");
void Error(string message, Exception ex = null, string memberName = "");
void Fatal(string message, Exception ex = null, string memberName = "");
void Info(string message, string memberName = "");
void Dispose();
void Warn(string message, Exception ex = null, string memberName = "");
}
}