Added replace functionality

This commit is contained in:
C9Glax 2022-05-05 15:49:19 +02:00
parent 08885de1c0
commit 9977031578

View File

@ -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;
}
}