diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-04 20:18:21 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-04 20:18:21 -0400 |
commit | 83f129aa169d3cc32f142951843df5d40d1c0f43 (patch) | |
tree | d4859c17d25412507e2b28d5e275ef3c8388f6d2 /src | |
parent | b7b69707eb83fac01b30ad5b94bb8a2672fc2180 (diff) | |
download | SMAPI-83f129aa169d3cc32f142951843df5d40d1c0f43.tar.gz SMAPI-83f129aa169d3cc32f142951843df5d40d1c0f43.tar.bz2 SMAPI-83f129aa169d3cc32f142951843df5d40d1c0f43.zip |
remove old obsolete log methods
Diffstat (limited to 'src')
-rw-r--r-- | src/StardewModdingAPI/Log.cs | 76 | ||||
-rw-r--r-- | src/TrainerMod/TrainerMod.cs | 96 |
2 files changed, 61 insertions, 111 deletions
diff --git a/src/StardewModdingAPI/Log.cs b/src/StardewModdingAPI/Log.cs index 9ac4bbf1..d2dc0b67 100644 --- a/src/StardewModdingAPI/Log.cs +++ b/src/StardewModdingAPI/Log.cs @@ -135,12 +135,6 @@ namespace StardewModdingAPI Log.AsyncY("[INFO] " + message); } - // unused? - public static void Out(object message) - { - Log.Async("[OUT] " + message); - } - /// <summary>Asynchronously log a debug message to the console.</summary> /// <param name="message">The message to log.</param> public static void Debug(object message) @@ -148,76 +142,6 @@ namespace StardewModdingAPI Log.AsyncO("[DEBUG] " + message); } - /**** - ** Obsolete - ****/ - public static void LogValueNotSpecified() - { - Log.AsyncR("<value> must be specified"); - } - - public static void LogObjectValueNotSpecified() - { - Log.AsyncR("<object> and <value> must be specified"); - } - - public static void LogValueInvalid() - { - Log.AsyncR("<value> is invalid"); - } - - public static void LogObjectInvalid() - { - Log.AsyncR("<object> is invalid"); - } - - public static void LogValueNotInt32() - { - Log.AsyncR("<value> must be a whole number (Int32)"); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - private static void PrintLog(object message, bool disableLogging, params object[] values) - { - Log.PrintLog(new LogInfo(message?.ToString())); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Success(object message, params object[] values) - { - Log.Success(message); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Verbose(object message, params object[] values) - { - Log.Out(message); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Comment(object message, params object[] values) - { - Log.AsyncC(message); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Info(object message, params object[] values) - { - Log.Info(message); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Error(object message, params object[] values) - { - Log.Error(message); - } - - [Obsolete("Parameter 'values' is no longer supported. Format before logging.")] - public static void Debug(object message, params object[] values) - { - Log.Debug(message); - } - /********* ** Private methods diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 8c521d95..c320b66f 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -132,12 +132,12 @@ namespace TrainerMod } else { - Log.LogObjectInvalid(); + TrainerMod.LogObjectInvalid(); } } else { - Log.LogObjectValueNotSpecified(); + TrainerMod.LogObjectValueNotSpecified(); } } @@ -160,13 +160,13 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -189,13 +189,13 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -211,12 +211,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -255,7 +255,7 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else @@ -280,12 +280,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -321,7 +321,7 @@ namespace TrainerMod } else { - Log.LogObjectInvalid(); + TrainerMod.LogObjectInvalid(); } } else @@ -378,17 +378,17 @@ namespace TrainerMod } else { - Log.LogValueInvalid(); + TrainerMod.LogValueInvalid(); } } else { - Log.LogObjectInvalid(); + TrainerMod.LogObjectInvalid(); } } else { - Log.LogObjectValueNotSpecified(); + TrainerMod.LogObjectValueNotSpecified(); } } @@ -411,12 +411,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -439,12 +439,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -465,12 +465,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -486,12 +486,12 @@ namespace TrainerMod } else { - Log.LogValueInvalid(); + TrainerMod.LogValueInvalid(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -512,13 +512,13 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -532,12 +532,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -551,12 +551,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -606,7 +606,7 @@ namespace TrainerMod } else { - Log.LogObjectValueNotSpecified(); + TrainerMod.LogObjectValueNotSpecified(); } } @@ -627,7 +627,7 @@ namespace TrainerMod } else { - Log.LogObjectValueNotSpecified(); + TrainerMod.LogObjectValueNotSpecified(); } } @@ -648,7 +648,7 @@ namespace TrainerMod } else { - Log.LogObjectValueNotSpecified(); + TrainerMod.LogObjectValueNotSpecified(); } } @@ -709,12 +709,12 @@ namespace TrainerMod } else { - Log.LogValueNotInt32(); + TrainerMod.LogValueNotInt32(); } } else { - Log.LogValueNotSpecified(); + TrainerMod.LogValueNotSpecified(); } } @@ -725,5 +725,31 @@ namespace TrainerMod private static void RegisterNewItem(object sender, EventArgsCommand e) { } + + /// <summary>Log an error indicating the </summary> + public static void LogValueNotSpecified() + { + Log.AsyncR("<value> must be specified"); + } + + public static void LogObjectValueNotSpecified() + { + Log.AsyncR("<object> and <value> must be specified"); + } + + public static void LogValueInvalid() + { + Log.AsyncR("<value> is invalid"); + } + + public static void LogObjectInvalid() + { + Log.AsyncR("<object> is invalid"); + } + + public static void LogValueNotInt32() + { + Log.AsyncR("<value> must be a whole number (Int32)"); + } } -}
\ No newline at end of file +} |