summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/LogLevel.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-14 17:42:27 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-14 17:42:27 -0500
commite2aa78fda4d6c5f07833855123da6e236fcb00a5 (patch)
treeda42a46126e31787123763714ab5732ce1ef82ee /src/StardewModdingAPI/LogLevel.cs
parentbe9d62411221146bba8edd3504c709f14da7c2a0 (diff)
downloadSMAPI-e2aa78fda4d6c5f07833855123da6e236fcb00a5.tar.gz
SMAPI-e2aa78fda4d6c5f07833855123da6e236fcb00a5.tar.bz2
SMAPI-e2aa78fda4d6c5f07833855123da6e236fcb00a5.zip
add new logging framework (#168)
Diffstat (limited to 'src/StardewModdingAPI/LogLevel.cs')
-rw-r--r--src/StardewModdingAPI/LogLevel.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/LogLevel.cs b/src/StardewModdingAPI/LogLevel.cs
new file mode 100644
index 00000000..89647876
--- /dev/null
+++ b/src/StardewModdingAPI/LogLevel.cs
@@ -0,0 +1,24 @@
+namespace StardewModdingAPI
+{
+ /// <summary>The log severity levels.</summary>
+ public enum LogLevel
+ {
+ /// <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
+ }
+} \ No newline at end of file