// Need to take into account Gradle's LIFECYCLE and QUIET markers. Whether those are set can only be determined
// for the global log level, but not for the logger's log level (at least not without walking the logger's
// hierarchy, which is something that Logback is designed to avoid for performance reasons).
// Hence we base our decision on the global log level.
LogLevel eventLevel = LogLevelConverter.toGradleLogLevel(level, marker);
return eventLevel.compareTo(currentLevel) >= 0 ? FilterReply.ACCEPT : FilterReply.DENY;
}
return level.isGreaterOrEqual(loggerLevel) ? FilterReply.ACCEPT : FilterReply.DENY;
}
}