Procházet zdrojové kódy

Added session-based log file numbering

Kenric Nugteren před 1 dnem
rodič
revize
57fbf0b2c2

+ 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");