chore: now using the rotating log files
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
using Engine.Core;
|
||||
using Engine.Core.Debug;
|
||||
@@ -13,7 +11,7 @@ Universe universe = new();
|
||||
|
||||
ISerializer serializer = new YamlSerializer();
|
||||
|
||||
ILogger logger = new FileLogger($"Logs/{DateTime.UtcNow:yyyy-MM-dd_HH-mm-ss-ffffff}.log");
|
||||
ILogger logger = new RotatingFileLogger("Logs", "MyGame");
|
||||
|
||||
#if DEBUG
|
||||
logger = new LoggerWrapper(logger, new ConsoleLogger());
|
||||
|
Reference in New Issue
Block a user