using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Ingenious.Mvc.Util{
/// <summary>
/// Defines the types of trace messages that can be written by the <see cref="Log"/> class.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1008", Justification = "A logging level of None would be useless. Also, the values are set to the corresponding TraceEventType value to make translation between the two enumerations seamless.")]
[SuppressMessage("Microsoft.Design", "CA1027", Justification = "Values in this enumeration cannot be combined.")]
public enum LogLevel
{
/// <summary>
/// Used for debugging traces that should be included even in non-debug builds.
/// </summary>
Verbose = TraceEventType.Verbose,
/// <summary>
/// Used for informational messages.
/// </summary>
Information = TraceEventType.Information,
/// <summary>
/// Indicates a noncritical problem.
/// </summary>
Warning = TraceEventType.Warning,
/// <summary>
/// Used for recoverable errors.
/// </summary>
Error = TraceEventType.Error,
/// <summary>
/// Used for unrecoverable errors or crashes.
/// </summary>
Critical = TraceEventType.Critical
}
}
|