Skip to content

Commit

Permalink
Added the LogLevel enumeration (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Apr 1, 2023
1 parent 851265f commit 1131619
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions PeyrSharp.Enums/LogLevel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
MIT License
Copyright (c) Léo Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

namespace PeyrSharp.Enums
{
/// <summary>
/// Specifies the severity level of a log message.
/// </summary>
public enum LogLevel
{
/// <summary>
/// Debug-level messages provide verbose information for debugging purposes.
/// </summary>
Debug,

/// <summary>
/// Info-level messages provide informational messages about the application's state.
/// </summary>
Info,

/// <summary>
/// Warning-level messages indicate a potential problem or non-critical issue.
/// </summary>
Warning,

/// <summary>
/// Error-level messages indicate an error has occurred in the application.
/// </summary>
Error,

/// <summary>
/// Critical-level messages indicate a critical error has occurred that requires immediate attention.
/// </summary>
Critical,

/// <summary>
/// Misc-level messages are for miscellaneous use cases and are not defined in the logging specification.
/// </summary>
Misc
}
}

0 comments on commit 1131619

Please sign in to comment.