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)
Deprecated.
since 2.4.0 in favor of
pulledImage(Image, ImageType) |
void |
pulledImage(Image image,
org.springframework.boot.buildpack.platform.build.ImageType imageType)
Log that an image has been pulled.
|
void |
pulledRunImage(BuildRequest request,
Image image)
Deprecated.
since 2.4.0 in favor of
pulledImage(Image, ImageType) |
Consumer<TotalProgressEvent> |
pullingBuilder(BuildRequest request,
ImageReference imageReference)
Deprecated.
since 2.4.0 in favor of
pullingImage(ImageReference, ImageType) |
Consumer<TotalProgressEvent> |
pullingImage(ImageReference imageReference,
org.springframework.boot.buildpack.platform.build.ImageType imageType)
Log that an image is being pulled.
|
Consumer<TotalProgressEvent> |
pullingRunImage(BuildRequest request,
ImageReference imageReference)
Deprecated.
since 2.4.0 in favor of
pullingImage(ImageReference, ImageType) |
void |
pushedImage(ImageReference imageReference)
Log that an image has been pushed.
|
Consumer<TotalProgressEvent> |
pushingImage(ImageReference imageReference)
Log that an image is being pushed.
|
Consumer<LogUpdateEvent> |
runningPhase(BuildRequest request,
String name)
Log that a specific phase is running.
|
void |
skippingPhase(String name,
String reason)
Log that a specific phase is being skipped.
|
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 request@Deprecated Consumer<TotalProgressEvent> pullingBuilder(BuildRequest request, ImageReference imageReference)
pullingImage(ImageReference, ImageType)
request
- the build requestimageReference
- the builder image reference@Deprecated void pulledBuilder(BuildRequest request, Image image)
pulledImage(Image, ImageType)
request
- the build requestimage
- the builder image that was pulled@Deprecated Consumer<TotalProgressEvent> pullingRunImage(BuildRequest request, ImageReference imageReference)
pullingImage(ImageReference, ImageType)
request
- the build requestimageReference
- the run image reference@Deprecated void pulledRunImage(BuildRequest request, Image image)
pulledImage(Image, ImageType)
request
- the build requestimage
- the run image that was pulledConsumer<TotalProgressEvent> pullingImage(ImageReference imageReference, org.springframework.boot.buildpack.platform.build.ImageType imageType)
imageReference
- the image referenceimageType
- the image typevoid pulledImage(Image image, org.springframework.boot.buildpack.platform.build.ImageType imageType)
image
- the image that was pulledimageType
- the image type that was pulledConsumer<TotalProgressEvent> pushingImage(ImageReference imageReference)
imageReference
- the image referencevoid pushedImage(ImageReference imageReference)
imageReference
- the image referencevoid 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 skippingPhase(String name, String reason)
name
- the name of the phasereason
- the reason the phase is skippedvoid 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