Example usage for org.springframework.boot.logging DeferredLog replay

List of usage examples for org.springframework.boot.logging DeferredLog replay

Introduction

In this page you can find the example usage for org.springframework.boot.logging DeferredLog replay.

Prototype

public static Log replay(Log source, Log destination) 

Source Link

Document

Replay from a source log to a destination log when the source is deferred.

Usage

From source file:org.springframework.boot.devtools.restart.Restarter.java

/**
 * Called to finish {@link Restarter} initialization when application logging is
 * available.// w w w  .j  a va2  s. c  o  m
 */
synchronized void finish() {
    if (!isFinished()) {
        this.logger = DeferredLog.replay(this.logger, LogFactory.getLog(getClass()));
        this.finished = true;
    }
}