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.Internal/ConsoleWriting/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.Internal/ConsoleWriting/LogLevel.cs')
-rw-r--r-- | src/SMAPI.Internal/ConsoleWriting/LogLevel.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/SMAPI.Internal/ConsoleWriting/LogLevel.cs b/src/SMAPI.Internal/ConsoleWriting/LogLevel.cs new file mode 100644 index 00000000..85e69f51 --- /dev/null +++ b/src/SMAPI.Internal/ConsoleWriting/LogLevel.cs @@ -0,0 +1,27 @@ +namespace StardewModdingAPI.Internal.ConsoleWriting +{ + /// <summary>The log severity levels.</summary> + internal enum ConsoleLogLevel + { + /// <summary>Tracing info intended for developers.</summary> + Trace, + + /// <summary>Troubleshooting info that may be relevant to the player.</summary> + Debug, + + /// <summary>Info relevant to the player. This should be used judiciously.</summary> + Info, + + /// <summary>An issue the player should be aware of. This should be used rarely.</summary> + Warn, + + /// <summary>A message indicating something went wrong.</summary> + 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, + + /// <summary>A critical issue that generally signals an immediate end to the application.</summary> + Critical + } +} |