reconnect, 30% fixes from test feedback
This commit is contained in:
@@ -65,7 +65,14 @@ public class Logger
|
||||
}
|
||||
|
||||
public static void SetFileName(string fileName){
|
||||
instance.LogFilePath = Path.Combine(ApplicationDirectory, fileName + ".txt");
|
||||
EnsureDirectoryExists(Path.Combine(ApplicationDirectory, "Logs"));
|
||||
instance.LogFilePath = Path.Combine(ApplicationDirectory, "Logs", fileName + ".txt");
|
||||
}
|
||||
|
||||
public static void EnsureDirectoryExists(string path){
|
||||
if(!Directory.Exists(path)){
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetFilePath(string path){
|
||||
|
||||
Reference in New Issue
Block a user