public interface BuildLog
Builder output logging.toSystemOut()| Modifier and Type | Method and Description |
|---|---|
void |
executedLifecycle(BuildRequest request)
Log that the lifecycle has executed.
|
void |
executingLifecycle(BuildRequest request,
org.springframework.boot.buildpack.platform.build.LifecycleVersion version,
VolumeName buildCacheVolume)
Log that the lifecycle is executing.
|
void |
pulledBuilder(BuildRequest request,
Image image)
Log that the builder image has been pulled.
|
void |
pulledRunImage(BuildRequest request,
Image image)
Log that a run image has been pulled.
|
Consumer<TotalProgressEvent> |
pullingBuilder(BuildRequest request,
ImageReference imageReference)
Log that the builder image is being pulled.
|
Consumer<TotalProgressEvent> |
pullingRunImage(BuildRequest request,
ImageReference imageReference)
Log that a run image is being pulled.
|
Consumer<LogUpdateEvent> |
runningPhase(BuildRequest request,
String name)
Log that a specific phase is running.
|
void |
start(BuildRequest request)
Log that a build is starting.
|
static BuildLog |
to(PrintStream out)
Factory method that returns a
BuildLog the outputs to a given
PrintStream. |
static BuildLog |
toSystemOut()
Factory method that returns a
BuildLog the outputs to System.out. |
void start(BuildRequest request)
request - the build requestConsumer<TotalProgressEvent> pullingBuilder(BuildRequest request, ImageReference imageReference)
request - the build requestimageReference - the builder image referencevoid pulledBuilder(BuildRequest request, Image image)
request - the build requestimage - the builder image that was pulledConsumer<TotalProgressEvent> pullingRunImage(BuildRequest request, ImageReference imageReference)
request - the build requestimageReference - the run image referencevoid pulledRunImage(BuildRequest request, Image image)
request - the build requestimage - the run image that was pulledvoid executingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, VolumeName buildCacheVolume)
request - the build requestversion - the lifecycle versionbuildCacheVolume - the name of the build cache volume in useConsumer<LogUpdateEvent> runningPhase(BuildRequest request, String name)
request - the build requestname - the name of the phasevoid executedLifecycle(BuildRequest request)
request - the build requeststatic BuildLog toSystemOut()
BuildLog the outputs to System.out.static BuildLog to(PrintStream out)
BuildLog the outputs to a given
PrintStream.out - the print stream used to output the log