diff --git a/Logger.cs b/Logger.cs index 51582b2..321e5f2 100644 --- a/Logger.cs +++ b/Logger.cs @@ -19,10 +19,10 @@ public static class Logger if(!File.Exists(log_path)) File.Create(log_path).Close(); - string[] line = [$"[{DateTime.Now:dd.MM.yyyy - T}]: ({logType.ToString()}) {text})"]; + string line = $"[{DateTime.Now:dd.MM.yyyy - T}]: ({logType.ToString()}) {text})"; Console.WriteLine(line); - File.AppendAllLines(log_path, line); + File.AppendAllLines(log_path, [line]); } catch (Exception ex) {