Merge branch 'Lab7' into Lab8
This commit is contained in:
commit
6109080bfc
@ -1,15 +0,0 @@
|
||||
using Serilog;
|
||||
|
||||
namespace AntiAircraftGun
|
||||
{
|
||||
public static class Logger
|
||||
{
|
||||
public static void ConfigureLogger()
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.WriteTo.File("log.txt")
|
||||
.MinimumLevel.Debug()
|
||||
.CreateLogger();
|
||||
}
|
||||
}
|
||||
}
|
15
AntiAirCraftGun/AntiAirCraftGun/serilog.json
Normal file
15
AntiAirCraftGun/AntiAirCraftGun/serilog.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "log.txt"
|
||||
}
|
||||
}
|
||||
],
|
||||
"MinimumLevel": {
|
||||
"Default": "Debug"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user