summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 14:46:50 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-19 14:46:50 -0500
commitbff59aacba9f97fe90b89d2640b56be57e3866e5 (patch)
tree97249202a1817de493f323b5c6292233bea51faf /src/StardewModdingAPI
parent4deb03b37db7d9653a679a1f6761b344e84d1fed (diff)
downloadSMAPI-bff59aacba9f97fe90b89d2640b56be57e3866e5.tar.gz
SMAPI-bff59aacba9f97fe90b89d2640b56be57e3866e5.tar.bz2
SMAPI-bff59aacba9f97fe90b89d2640b56be57e3866e5.zip
restore all Log methods for backwards compatibility
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Log.cs106
1 files changed, 106 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Log.cs b/src/StardewModdingAPI/Log.cs
index 3ab9fe78..5cb794f9 100644
--- a/src/StardewModdingAPI/Log.cs
+++ b/src/StardewModdingAPI/Log.cs
@@ -179,6 +179,112 @@ namespace StardewModdingAPI
Log.Monitor.LegacyLog(Log.GetModName(), message, ConsoleColor.DarkGray, LogLevel.Trace);
}
+ /// <summary>Obsolete.</summary>
+ public static void LogValueNotSpecified()
+ {
+ Log.WarnDeprecated();
+ Log.AsyncR("<value> must be specified");
+ }
+
+ /// <summary>Obsolete.</summary>
+ public static void LogObjectValueNotSpecified()
+ {
+ Log.WarnDeprecated();
+ Log.AsyncR("<object> and <value> must be specified");
+ }
+
+ /// <summary>Obsolete.</summary>
+ public static void LogValueInvalid()
+ {
+ Log.WarnDeprecated();
+ Log.AsyncR("<value> is invalid");
+ }
+
+ /// <summary>Obsolete.</summary>
+ public static void LogObjectInvalid()
+ {
+ Log.WarnDeprecated();
+ Log.AsyncR("<object> is invalid");
+ }
+
+ /// <summary>Obsolete.</summary>
+ public static void LogValueNotInt32()
+ {
+ Log.WarnDeprecated();
+ Log.AsyncR("<value> must be a whole number (Int32)");
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="disableLogging">Obsolete.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ private static void PrintLog(object message, bool disableLogging, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Monitor.LegacyLog(Log.GetModName(), message?.ToString(), ConsoleColor.Gray);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Success(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Success(message);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Verbose(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Out(message);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Comment(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.AsyncC(message);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Info(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Info(message);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Error(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Error(message);
+ }
+
+ /// <summary>Obsolete.</summary>
+ /// <param name="message">The message to log.</param>
+ /// <param name="values">Obsolete.</param>
+ [Obsolete("Parameter 'values' is no longer supported. Format before logging.")]
+ public static void Debug(object message, params object[] values)
+ {
+ Log.WarnDeprecated();
+ Log.Debug(message);
+ }
+
/*********
** Private methods