当前位置: 首页>>代码示例>>Java>>正文


Java LogLevel.LIFECYCLE属性代码示例

本文整理汇总了Java中org.gradle.api.logging.LogLevel.LIFECYCLE属性的典型用法代码示例。如果您正苦于以下问题:Java LogLevel.LIFECYCLE属性的具体用法?Java LogLevel.LIFECYCLE怎么用?Java LogLevel.LIFECYCLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.gradle.api.logging.LogLevel的用法示例。


在下文中一共展示了LogLevel.LIFECYCLE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:20,代码来源:AntLoggingAdapter.java

示例2: 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;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:12,代码来源:OutputEventListenerBackedLogger.java

示例3: ProgressStartEvent

public ProgressStartEvent(OperationIdentifier operationId, @Nullable OperationIdentifier parentId, long timestamp, String category, String description, @Nullable String shortDescription, @Nullable String loggingHeader, String status) {
    super(timestamp, category, LogLevel.LIFECYCLE);
    this.operationId = operationId;
    this.parentId = parentId;
    this.description = description;
    this.shortDescription = shortDescription;
    this.loggingHeader = loggingHeader;
    this.status = status;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:ProgressStartEvent.java

示例4: ProgressEvent

public ProgressEvent(OperationIdentifier operationId, long timestamp, String category, String status) {
    super(timestamp, category, LogLevel.LIFECYCLE);
    this.operationId = operationId;
    this.status = status;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:ProgressEvent.java

示例5: ProgressCompleteEvent

public ProgressCompleteEvent(OperationIdentifier operationId, long timestamp, String category, String description, String status) {
    super(timestamp, category, LogLevel.LIFECYCLE);
    this.operationId = operationId;
    this.status = status;
    this.description = description;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:6,代码来源:ProgressCompleteEvent.java


注:本文中的org.gradle.api.logging.LogLevel.LIFECYCLE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。