internal static void Write(LogLevel level, string message, params object[] args) { LogConfiguration configuration = GlobalSettings.LogConfiguration; if (!IsEnabled(configuration, level)) { return; } configuration.Handler(level, string.Format(message, args)); }
private static bool IsEnabled(LogConfiguration configuration, LogLevel level) { return (configuration.Level != LogLevel.None && configuration.Level >= level); }
private static bool IsEnabled(LogConfiguration configuration, LogLevel level) { return(configuration.Level != LogLevel.None && configuration.Level >= level); }