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 "";
}
}
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; }