LogLevelExtensions Class
Definition
Section titled “Definition”Helper methods for log level handling.
public static class LogLevelExtensions
Inheritance object
Methods
Section titled “Methods”GetHighestLevel(LogLevel)
Section titled “GetHighestLevel(LogLevel)”Gets the highest log level when there could potentially be multiple levels provided.
public static LogLevel GetHighestLevel(this LogLevel levels)
Parameters
Section titled “Parameters”levels
LogLevel
The log level(s).
Returns
Section titled “Returns”LogLevel
The highest log level supplied.
GetConsoleColor(LogLevel)
Section titled “GetConsoleColor(LogLevel)”Returns a translation of a log level to it’s associated console colour.
public static ConsoleColor GetConsoleColor(this LogLevel level)
Parameters
Section titled “Parameters”level
LogLevel
The log level(s).
Returns
Section titled “Returns”ConsoleColor
A console color associated with the highest log level supplied.