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

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

本文整理了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

  1. @Override
  2. public void cleanup() {
  3. if (exitCode != null && log.isVerboseEnabled()) {
  4. // if not running, probably something went wrong during startup: spit out logs
  5. new LogDispatcher(dockerAccess).fetchContainerLog(containerId, LogOutputSpec.DEFAULT);
  6. dockerAccess.getLogSync(containerId, new DefaultLogCallback(
  7. new LogOutputSpec.Builder()
  8. .color("black", true)
  9. .prefix(containerId.substring(0, 6))
  10. .useColor(true)
  11. .logStdout(true)
  12. .build()
  13. ));
  14. }
  15. }

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

  1. @Override
  2. public boolean isVerboseEnabled() {
  3. return log.isVerboseEnabled();
  4. }

相关文章