Skip to content

Commit 35d3f06

Browse files
committed
Add sevirity level enum
1 parent 1aae451 commit 35d3f06

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Text.Json.Serialization;
2+
using Tapper;
3+
4+
namespace Initium.Constants;
5+
6+
/// <summary>
7+
/// Represents different levels of severity for categorizing events, states, or conditions.
8+
/// These levels can be used in various contexts to indicate the importance or criticality of an event.
9+
/// </summary>
10+
[TranspilationSource]
11+
[JsonConverter(typeof(JsonStringEnumConverter))]
12+
public enum SeverityLevels
13+
{
14+
/// <summary>
15+
/// Represents the most detailed level of information. Typically includes extensive and potentially sensitive details.
16+
/// This level should be used with caution in sensitive environments.
17+
/// </summary>
18+
Trace,
19+
20+
/// <summary>
21+
/// Represents general informational messages. Often used for routine insights or operational context.
22+
/// </summary>
23+
Information,
24+
25+
/// <summary>
26+
/// Represents situations that indicate potential issues or irregularities but do not disrupt operations.
27+
/// </summary>
28+
Warning,
29+
30+
/// <summary>
31+
/// Represents conditions that indicate an error or failure in a specific process or operation.
32+
/// Typically requires attention to resolve.
33+
/// </summary>
34+
Error
35+
}

0 commit comments

Comments
 (0)