BloombergFLP.CollectdWin.EventValue.levelToString C# (CSharp) Method

levelToString() public static method

public static levelToString ( int level ) : string
level int
return string
        public static string levelToString(int level)
        {
            switch (level)
            {
                case 1:
                    return "CRITICAL";
                case 2:
                    return "ERROR";
                case 3:
                    return "WARN";
                case 4:
                    return "INFO";
                case 5:
                    return "DEBUG";
                default:
                    return "";
            }
        }

Usage Example

Example #1
0
 public EventValue(string hostname, long timestamp, int nLevel, string title, string message, long id, string source)
 {
     Level     = EventValue.levelToString(nLevel);
     Timestamp = timestamp;
     Title     = title;
     Message   = message;
     HostName  = hostname;
     Id        = id;
     Source    = source;
 }
All Usage Examples Of BloombergFLP.CollectdWin.EventValue::levelToString