add an overload that doesn't use string.Format

This commit is contained in:
Matthias Mailänder
2015-08-16 14:55:43 +02:00
parent d17d68f894
commit 2df76ad962

View File

@@ -61,6 +61,18 @@ namespace OpenRA
catch (IOException) { }
}
public static void Write(string channel, string value)
{
ChannelInfo info;
if (!Channels.TryGetValue(channel, out info))
throw new Exception("Tried logging to non-existant channel " + channel);
if (info.Writer == null)
return;
info.Writer.WriteLine(value);
}
public static void Write(string channel, string format, params object[] args)
{
ChannelInfo info;