APISonar


com.google.cloud.tools.jib.plugins.common.logging.ConsoleLogger.log

> com > google > cloud > tools > jib > plugins > common > logging > ConsoleLogger > log
com APIs google APIs cloud APIs tools APIs jib APIs plugins APIs common APIs logging APIs ConsoleLogger APIs log APIs

Example 1
private final ConsoleLogger consoleLogger;

  public void configureEventHandlers(Containerizer containerizer) {
    containerizer
        .addEventHandler(LogEvent.class, this::log)
        .addEventHandler(
            TimerEvent.class,
            new TimerEventHandler(message -> consoleLogger.log(LogEvent.Level.DEBUG, message)))
        .addEventHandler(
            ProgressEvent.class,
            new ProgressEventHandler(
                update ->
                    consoleLogger.setFooter(
                        ProgressDisplayGenerator.generateProgressDisplay(
                            update.getProgress(), update.getUnfinishedLeafTasks()))));
  }