io.fabric8.maven.docker.util.Logger.isVerboseEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中io.fabric8.maven.docker.util.Logger.isVerboseEnabled()方法的一些代码示例,展示了Logger.isVerboseEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isVerboseEnabled()方法的具体详情如下:
包路径:io.fabric8.maven.docker.util.Logger
类名称:Logger
方法名:isVerboseEnabled

Logger.isVerboseEnabled介绍

[英]Whether verbose is enablee
[中]是否启用verbose

代码示例

代码示例来源:origin: fabric8io/docker-maven-plugin

@Override
public void cleanup() {
  if (exitCode != null && log.isVerboseEnabled()) {
    // if not running, probably something went wrong during startup: spit out logs
    new LogDispatcher(dockerAccess).fetchContainerLog(containerId, LogOutputSpec.DEFAULT);
    dockerAccess.getLogSync(containerId, new DefaultLogCallback(
      new LogOutputSpec.Builder()
        .color("black", true)
        .prefix(containerId.substring(0, 6))
        .useColor(true)
        .logStdout(true)
        .build()
    ));
  }
}

代码示例来源:origin: fabric8io/fabric8-maven-plugin

@Override
public boolean isVerboseEnabled() {
  return log.isVerboseEnabled();
}

相关文章