Home / Type/ DockerLog Type — spring-boot Architecture

DockerLog Type — spring-boot Architecture

Architecture documentation for the DockerLog type/interface in DockerLog.java from the spring-boot codebase.

Entity Profile

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerLog.java lines 28–54

public interface DockerLog {

	/**
	 * Logs a given message.
	 * @param message the message to log
	 */
	void log(String message);

	/**
	 * Factory method that returns a {@link DockerLog} that outputs to {@link System#out}.
	 * @return {@link DockerLog} instance that logs to system out
	 */
	static DockerLog toSystemOut() {
		return to(System.out);
	}

	/**
	 * Factory method that returns a {@link DockerLog} that outputs to a given
	 * {@link PrintStream}.
	 * @param out the print stream used to output the log
	 * @return {@link DockerLog} instance that logs to the given print stream
	 */
	static DockerLog to(PrintStream out) {
		return out::println;
	}

}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free