Decides whether to show the log based on the index of the LogLevel.
bool skipLog(LogLevel logLevel) => index > logLevel.index;