[chronojump] Logs moved from tmp to chronojump folder in order to not be deleted after restart computer



commit fa4a045ef50748fcc00d5d3f1557c2baac3d9200
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 13 13:28:15 2015 +0100

    Logs moved from tmp to chronojump folder in order to not be deleted after restart computer

 src/utilAll.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/utilAll.cs b/src/utilAll.cs
index 80307d7..99d146f 100644
--- a/src/utilAll.cs
+++ b/src/utilAll.cs
@@ -109,7 +109,9 @@ public class UtilAll
        // ----------- logs -----------------------
        
        public static string GetLogsDir() {
-               return Path.Combine(Path.GetTempPath(), "Chronojump-logs");
+               return Path.Combine(
+                               Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
+                               "Chronojump" + Path.DirectorySeparatorChar + "logs");
        }
        public static string GetLogFileCurrent() {
                return Path.Combine(GetLogsDir() +  Path.DirectorySeparatorChar + "log_chronojump.txt");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]