summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/LogParsing
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-12 15:42:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-12 15:42:36 -0400
commitb474c47a08813eef41db7f558f2efa33f6165d81 (patch)
treedd64edbc7fa7f15f7cd7167da0c04d194721eeea /src/SMAPI.Web/Framework/LogParsing
parent28880395c73ce942a05c9a55ce8b379dc8bfee22 (diff)
downloadSMAPI-b474c47a08813eef41db7f558f2efa33f6165d81.tar.gz
SMAPI-b474c47a08813eef41db7f558f2efa33f6165d81.tar.bz2
SMAPI-b474c47a08813eef41db7f558f2efa33f6165d81.zip
update log parser for the internal 'critical' log level
Diffstat (limited to 'src/SMAPI.Web/Framework/LogParsing')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/LogLevel.cs17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/LogLevel.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogLevel.cs
index 40d21bf8..759f15db 100644
--- a/src/SMAPI.Web/Framework/LogParsing/Models/LogLevel.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogLevel.cs
@@ -1,24 +1,29 @@
+using StardewModdingAPI.Internal.ConsoleWriting;
+
namespace StardewModdingAPI.Web.Framework.LogParsing.Models
{
/// <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,
+
+ /// <summary>A critical issue that generally signals an immediate end to the application.</summary>
+ Critical = ConsoleLogLevel.Critical
}
}