Compare commits
No commits in common. "6109080bfcfbc4edf765c6afc44ebe16e1c94e92" and "2e0e8de7212c7800d31f113d8e124d74b2911196" have entirely different histories.
6109080bfc
...
2e0e8de721
15
AntiAirCraftGun/AntiAirCraftGun/Logger.cs
Normal file
15
AntiAirCraftGun/AntiAirCraftGun/Logger.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
using Serilog;
|
||||||
|
|
||||||
|
namespace AntiAircraftGun
|
||||||
|
{
|
||||||
|
public static class Logger
|
||||||
|
{
|
||||||
|
public static void ConfigureLogger()
|
||||||
|
{
|
||||||
|
Log.Logger = new LoggerConfiguration()
|
||||||
|
.WriteTo.File("log.txt")
|
||||||
|
.MinimumLevel.Debug()
|
||||||
|
.CreateLogger();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"Serilog": {
|
|
||||||
"WriteTo": [
|
|
||||||
{
|
|
||||||
"Name": "File",
|
|
||||||
"Args": {
|
|
||||||
"path": "log.txt"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"MinimumLevel": {
|
|
||||||
"Default": "Debug"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user