diff --git a/TShockAPI/Log.cs b/TShockAPI/Log.cs
index 9e54c53a..b04bc4c9 100644
--- a/TShockAPI/Log.cs
+++ b/TShockAPI/Log.cs
@@ -70,6 +70,16 @@ namespace TShockAPI
public static void Data(String message)
{
Write(message, LogLevel.Data);
+ }
+
+ ///
+ /// Writes data to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void Data(String format, params String[] args)
+ {
+ Data(String.Format(format, args));
}
///
@@ -79,6 +89,16 @@ namespace TShockAPI
public static void Error(String message)
{
Write(message, LogLevel.Error);
+ }
+
+ ///
+ /// Writes an error to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void Error(String format, params String[] args)
+ {
+ Error(String.Format(format, args));
}
///
@@ -91,6 +111,16 @@ namespace TShockAPI
Console.WriteLine(message);
Console.ForegroundColor = ConsoleColor.Gray;
Write(message, LogLevel.Error);
+ }
+
+ ///
+ /// Writes an error to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void ConsoleError(String format, params String[] args)
+ {
+ ConsoleError(String.Format(format, args));
}
///
@@ -100,6 +130,16 @@ namespace TShockAPI
public static void Warn(String message)
{
Write(message, LogLevel.Warning);
+ }
+
+ ///
+ /// Writes a warning to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void Warn(String format, params String[] args)
+ {
+ Warn(String.Format(format, args));
}
///
@@ -109,6 +149,16 @@ namespace TShockAPI
public static void Info(String message)
{
Write(message, LogLevel.Info);
+ }
+
+ ///
+ /// Writes an informative string to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void Info(String format, params String[] args)
+ {
+ Info(String.Format(format, args));
}
///
@@ -121,6 +171,16 @@ namespace TShockAPI
Console.WriteLine(message);
Console.ForegroundColor = ConsoleColor.Gray;
Write(message, LogLevel.Info);
+ }
+
+ ///
+ /// Writes an informative string to the log file. Also outputs to the console.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void ConsoleInfo(String format, params String[] args)
+ {
+ ConsoleInfo(String.Format(format, args));
}
///
@@ -130,6 +190,16 @@ namespace TShockAPI
public static void Debug(String message)
{
Write(message, LogLevel.Debug);
+ }
+
+ ///
+ /// Writes a debug string to the log file.
+ ///
+ /// The format of the message to be written.
+ /// The format arguments.
+ public static void Debug(String format, params String[] args)
+ {
+ Debug(String.Format(format, args));
}
///