/// <summary> /// Returns true if the logEntry text match <paramref name="message"/> and the its log level match <paramref name="logLevel"/>. /// </summary> /// <param name="this">The log entry.</param> /// <param name="message">The message that the log text needs to match.</param> /// <param name="logLevel">The log level that the log entry needs to match.</param> /// <returns></returns> internal static bool Validate(this ILogEntry @this, string message, LogLevel logLevel) { return(@this.Validate(message) && @this.LogLevel.HasFlag(logLevel)); }