diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-10 00:47:20 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-10 00:47:20 -0400 |
commit | 02c02a55eeeb744108d6a8335f6203a95ea20626 (patch) | |
tree | b6b7b6126c6077632114095d2bdeea937d47e4be /src/SMAPI/LogLevel.cs | |
parent | 5a2755bfcc516345800a4e9b966a0aff435215b8 (diff) | |
download | SMAPI-02c02a55eeeb744108d6a8335f6203a95ea20626.tar.gz SMAPI-02c02a55eeeb744108d6a8335f6203a95ea20626.tar.bz2 SMAPI-02c02a55eeeb744108d6a8335f6203a95ea20626.zip |
generalise console color logic for reuse (#495)
Diffstat (limited to 'src/SMAPI/LogLevel.cs')
-rw-r--r-- | src/SMAPI/LogLevel.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/SMAPI/LogLevel.cs b/src/SMAPI/LogLevel.cs index 89647876..7987f82a 100644 --- a/src/SMAPI/LogLevel.cs +++ b/src/SMAPI/LogLevel.cs @@ -1,24 +1,26 @@ +using StardewModdingAPI.Internal.ConsoleWriting; + namespace StardewModdingAPI { /// <summary>The log severity levels.</summary> public enum LogLevel { /// <summary>Tracing info intended for developers.</summary> - Trace, + Trace = ConsoleLogLevel.Trace, /// <summary>Troubleshooting info that may be relevant to the player.</summary> - Debug, + Debug = ConsoleLogLevel.Debug, /// <summary>Info relevant to the player. This should be used judiciously.</summary> - Info, + Info = ConsoleLogLevel.Info, /// <summary>An issue the player should be aware of. This should be used rarely.</summary> - Warn, + Warn = ConsoleLogLevel.Warn, /// <summary>A message indicating something went wrong.</summary> - Error, + Error = ConsoleLogLevel.Error, /// <summary>Important information to highlight for the player when player action is needed (e.g. new version available). This should be used rarely to avoid alert fatigue.</summary> - Alert + Alert = ConsoleLogLevel.Alert } -}
\ No newline at end of file +} |