|
// -- FILE ------------------------------------------------------------------
// name : LoggerLevel.cs
// project : System Framelet
// created : Leon Poyyayil - 2005.05.05
// language : c#
// environment: .NET 2.0
// copyright : (c) 2004-2010 by Itenso GmbH, Switzerland
// --------------------------------------------------------------------------
using Itenso.Sys.Collection;
namespace Itenso.Sys.Logging
{
// ------------------------------------------------------------------------
public enum LoggerLevel
{
Fatal = 0,
Error = 1,
Warn = 2,
Info = 3,
Debug = 4
} // enum LoggerLevel
// ------------------------------------------------------------------------
public static class LoggerLevelEnumHelper
{
// ----------------------------------------------------------------------
public static LoggerLevel Parse( string value )
{
return (LoggerLevel)CollectionTool.ParseEnumValue( typeof( LoggerLevel ), value, true );
} // Parse
// ----------------------------------------------------------------------
public static string Format( LoggerLevel value )
{
return value.ToString();
} // Format
// ----------------------------------------------------------------------
public static string PossibleValues()
{
return CollectionTool.EnumValuesToString( typeof( LoggerLevel ) );
} // PossibleValues
} // class LoggerLevelEnumHelper
} // namespace Itenso.Sys.Logging
// -- EOF -------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
👨 Senior .NET Software Engineer
🚀 My Open Source Projects
-
Time Period Library 👉
GitHub
-
Payroll Engine 👉
GitHub
Feedback and contributions are welcome.