summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/DeprecationManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Framework/DeprecationManager.cs')
-rw-r--r--src/StardewModdingAPI/Framework/DeprecationManager.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/DeprecationManager.cs b/src/StardewModdingAPI/Framework/DeprecationManager.cs
index a3d1ea41..0c5a49f9 100644
--- a/src/StardewModdingAPI/Framework/DeprecationManager.cs
+++ b/src/StardewModdingAPI/Framework/DeprecationManager.cs
@@ -19,6 +19,13 @@ namespace StardewModdingAPI.Framework
/*********
+ ** Accessors
+ *********/
+ /// <summary>Whether <see cref="DeprecationLevel.Notice"/>-level deprecation messages should be shown in the console.</summary>
+ public bool SendNoticesToConsole { get; set; }
+
+
+ /*********
** Public methods
*********/
/// <summary>Register a mod as a possible source of deprecation warnings.</summary>
@@ -63,7 +70,10 @@ namespace StardewModdingAPI.Framework
switch (severity)
{
case DeprecationLevel.Notice:
- Log.LogToFile(message);
+ if (this.SendNoticesToConsole)
+ Log.Debug($"[DEV] {message}");
+ else
+ Log.LogToFile(message);
break;
case DeprecationLevel.Info: