本文整理汇总了Java中org.gradle.api.logging.LogLevel.INFO属性的典型用法代码示例。如果您正苦于以下问题:Java LogLevel.INFO属性的具体用法?Java LogLevel.INFO怎么用?Java LogLevel.INFO使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.gradle.api.logging.LogLevel
的用法示例。
在下文中一共展示了LogLevel.INFO属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLogLevelForMessagePriority
private LogLevel getLogLevelForMessagePriority(int messagePriority) {
LogLevel defaultLevel = LogLevelMapping.ANT_IVY_2_SLF4J.get(messagePriority);
// Check to see if we should adjust the level based on a set lifecycle log level
if (lifecycleLogLevel != null) {
if (defaultLevel.ordinal() < LogLevel.LIFECYCLE.ordinal()
&& AntMessagePriority.from(messagePriority).ordinal() >= lifecycleLogLevel.ordinal()) {
// we would normally log at a lower level than lifecycle, but the Ant message priority is actually higher
// than (or equal to) the set lifecycle log level
return LogLevel.LIFECYCLE;
} else if (defaultLevel.ordinal() >= LogLevel.LIFECYCLE.ordinal()
&& AntMessagePriority.from(messagePriority).ordinal() < lifecycleLogLevel.ordinal()) {
// would normally log at a level higher than (or equal to) lifecycle, but the Ant message priority is
// actually lower than the set lifecycle log level
return LogLevel.INFO;
}
}
return defaultLevel;
}
示例2: fillInFailureResolution
private void fillInFailureResolution(FailureDetails details) {
if (details.failure instanceof FailureResolutionAware) {
((FailureResolutionAware) details.failure).appendResolution(details.resolution, clientMetaData);
if (details.resolution.getHasContent()) {
details.resolution.append(' ');
}
}
if (details.exceptionStyle == ExceptionStyle.NONE) {
details.resolution.text("Run with ");
details.resolution.withStyle(UserInput).format("--%s", LoggingCommandLineConverter.STACKTRACE_LONG);
details.resolution.text(" option to get the stack trace. ");
}
if (loggingConfiguration.getLogLevel() != LogLevel.DEBUG) {
details.resolution.text("Run with ");
if (loggingConfiguration.getLogLevel() != LogLevel.INFO) {
details.resolution.withStyle(UserInput).format("--%s", LoggingCommandLineConverter.INFO_LONG);
details.resolution.text(" or ");
}
details.resolution.withStyle(UserInput).format("--%s", LoggingCommandLineConverter.DEBUG_LONG);
details.resolution.text(" option to get more log output.");
}
}
示例3: toLogLevel
private LogLevel toLogLevel(Marker marker) {
if (marker == null) {
return LogLevel.INFO;
}
if (marker == Logging.LIFECYCLE) {
return LogLevel.LIFECYCLE;
}
if (marker == Logging.QUIET) {
return LogLevel.QUIET;
}
return LogLevel.INFO;
}
示例4: configure
public void configure(ProviderConnectionParameters parameters) {
LogLevel providerLogLevel = parameters.getVerboseLogging() ? LogLevel.DEBUG : LogLevel.INFO;
LOGGER.debug("Configuring logging to level: {}", providerLogLevel);
LoggingManagerInternal loggingManager = loggingServices.newInstance(LoggingManagerInternal.class);
loggingManager.setLevelInternal(providerLogLevel);
loggingManager.start();
}