Package org.gradle.api.logging

Examples of org.gradle.api.logging.LogLevel.compareTo()


                // 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;
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.