Explorar el Código

Added session-based log file numbering

Kenric Nugteren hace 3 días
padre
commit
57fbf0b2c2
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      prs.desktop/App.xaml.cs
  2. 1 1
      prs.server/Forms/Configuration.xaml.cs
  3. 1 1
      prs.services/Engine.cs

+ 1 - 1
prs.desktop/App.xaml.cs

@@ -206,7 +206,7 @@ namespace PRSDesktop
 
             SetupExceptionHandling();
 
-            MainLogger.AddLogger(new LogFileLogger(CoreUtils.GetPath()));
+            MainLogger.AddLogger(new LogFileLogger(CoreUtils.GetPath(), false));
             Logger.OnLog += MainLogger.Send;
 
             if (e.Args.Any())

+ 1 - 1
prs.server/Forms/Configuration.xaml.cs

@@ -64,7 +64,7 @@ public partial class Configuration : ThemableWindow
             CoreUtils.RegisterClasses(typeof(Configuration).Assembly);
 
             Logger.OnLog += MainLogger.Send;
-            MainLogger.AddLogger(new LogFileLogger(CoreUtils.GetPath()));
+            MainLogger.AddLogger(new LogFileLogger(CoreUtils.GetPath(), false));
 
             Logger.Send(LogType.Information, "", string.Format("Config Path: {0}", CoreUtils.GetPath()));
 

+ 1 - 1
prs.services/Engine.cs

@@ -59,7 +59,7 @@ public abstract class Engine<TProperties> : IEngine where TProperties : ServerPr
         Properties = server.Properties as TProperties;
 
         AppDataFolder = GetPath(server.Key);
-        MainLogger.AddLogger(new LogFileLogger(AppDataFolder));
+        MainLogger.AddLogger(new LogFileLogger(AppDataFolder, true));
         MainLogger.AddLogger(new NamedPipeLogger(server.Key));
         
         _enginemanager = new RpcServerPipeTransport($"{ServiceName}M");