From 99770315788b5dceccbcdf696093976133795d8d Mon Sep 17 00:00:00 2001 From: C9Glax Date: Thu, 5 May 2022 15:49:19 +0200 Subject: [PATCH] Added replace functionality --- Logging/Logger.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Logging/Logger.cs b/Logging/Logger.cs index 7011e2b..73e8e58 100644 --- a/Logging/Logger.cs +++ b/Logging/Logger.cs @@ -16,15 +16,15 @@ this.logfilepath = path; } - public void log(string message) + public void log(string message, params object[] ?replace) { switch (this.logType) { case LogType.Console: - Console.WriteLine(message); + Console.WriteLine(string.Format(message, replace)); break; case LogType.Logfile: - File.WriteAllText(this.logfilepath, message); + File.WriteAllText(this.logfilepath, string.Format(message, replace)); break; } }