public static void Log(string message, LogLevel level = LogLevel.Assessment) { if (!LOG_LEVEL.HasFlag(level)) { return; } Console.WriteLine(message); }
private void TryLog(LogLevel level, string message) { if (!logLevel.HasFlag(level)) { return; } string logLevelName = Enum.GetName(typeof(LogLevel), level); Console.WriteLine(string.Format(LogMessageFormat, logLevelName, TypeName, message)); }