added Serilog and file logging (#17)

This commit is contained in:
Marius Nechifor
2024-11-28 23:12:08 +02:00
committed by GitHub
parent a5a54e324d
commit 43a11f0e4c
11 changed files with 132 additions and 16 deletions
@@ -0,0 +1,12 @@
namespace Common.Configuration.Logging;
public class FileLogConfig : IConfig
{
public bool Enabled { get; set; }
public string Path { get; set; } = string.Empty;
public void Validate()
{
}
}
@@ -0,0 +1,16 @@
using Serilog.Events;
namespace Common.Configuration.Logging;
public class LoggingConfig : IConfig
{
public const string SectionName = "Logging";
public LogEventLevel LogLevel { get; set; }
public FileLogConfig? File { get; set; }
public void Validate()
{
}
}