Compare commits
2 Commits
2e0e8de721
...
6109080bfc
Author | SHA1 | Date | |
---|---|---|---|
6109080bfc | |||
82ea3c5f02 |
@ -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