State Street Gang
.NET, straight up

Did I put that in production code?

March 19, 2008 09:18 by will

Been doing some maintenance this week at work on an application I wrote.  As I was searching for obsolete code I came across my log priority enum definition:

/// <summary>
/// Log priority
/// </summary>
[Flags]
public enum Prioritah
{
    None = 0x00,
    Information = 0x02,
    Warning = 0x04,
    Exception = 0x08,
    Chernobyl = 0x10,
    SoylentGreenIsPeople = 0x20
}

The SoylentGreenIsPeople log priority level sounds bad enough itself, but since this is a [Flags] enumeration, its about midway on the terror scale.  For example, if I have to log that a radiation leak has caused the zombie holocaust, I'd set the priority to

OMFG = Prioritah.Chernobyl | Prioritah.SoylentGreenIsPeople;

which seems appropriate for radioactive zombies eating human flesh.


Tags:
Categories: Nuts
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Comments are closed