接口 BuildLog
- 所有已知实现类:
AbstractBuildLog
public interface BuildLog
Callback interface used to provide
Builder output logging.- 从以下版本开始:
- 2.3.0
- 作者:
- Phillip Webb, Scott Frederick, Andrey Shlykov, Rafael Ceccone
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidexecutedLifecycle(BuildRequest request) Log that the lifecycle has executed.voidexecutingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, Cache buildCache) Log that the lifecycle is executing.voidexecutingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, VolumeName buildCacheVolume) Log that the lifecycle is executing.voidfailedCleaningWorkDir(Cache cache, Exception exception) Log that a cache cleanup step was not completed successfully.voidpulledImage(Image image, org.springframework.boot.buildpack.platform.build.ImageType imageType) Log that an image has been pulled.pullingImage(ImageReference imageReference, ImagePlatform platform, org.springframework.boot.buildpack.platform.build.ImageType imageType) Log that an image is being pulled.voidpushedImage(ImageReference imageReference) Log that an image has been pushed.pushingImage(ImageReference imageReference) Log that an image is being pushed.runningPhase(BuildRequest request, String name) Log that a specific phase is running.voidsensitiveTargetBindingDetected(Binding binding) Log that a binding with a sensitive target has been detected.voidskippingPhase(String name, String reason) Log that a specific phase is being skipped.voidstart(BuildRequest request) Log that a build is starting.voidLog that a tag has been created.static BuildLogto(PrintStream out) Factory method that returns aBuildLogthe outputs to a givenPrintStream.static BuildLogFactory method that returns aBuildLogthe outputs toSystem.out.
-
方法详细资料
-
start
Log that a build is starting.- 参数:
request- the build request
-
pullingImage
Consumer<TotalProgressEvent> pullingImage(ImageReference imageReference, ImagePlatform platform, org.springframework.boot.buildpack.platform.build.ImageType imageType) Log that an image is being pulled.- 参数:
imageReference- the image referenceplatform- the platform of the imageimageType- the image type- 返回:
- a consumer for progress update events
-
pulledImage
void pulledImage(Image image, org.springframework.boot.buildpack.platform.build.ImageType imageType) Log that an image has been pulled.- 参数:
image- the image that was pulledimageType- the image type that was pulled
-
pushingImage
Log that an image is being pushed.- 参数:
imageReference- the image reference- 返回:
- a consumer for progress update events
-
pushedImage
Log that an image has been pushed.- 参数:
imageReference- the image reference
-
executingLifecycle
void executingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, VolumeName buildCacheVolume) Log that the lifecycle is executing.- 参数:
request- the build requestversion- the lifecycle versionbuildCacheVolume- the name of the build cache volume in use
-
executingLifecycle
void executingLifecycle(BuildRequest request, org.springframework.boot.buildpack.platform.build.LifecycleVersion version, Cache buildCache) Log that the lifecycle is executing.- 参数:
request- the build requestversion- the lifecycle versionbuildCache- the build cache in use
-
runningPhase
Log that a specific phase is running.- 参数:
request- the build requestname- the name of the phase- 返回:
- a consumer for log updates
-
skippingPhase
Log that a specific phase is being skipped.- 参数:
name- the name of the phasereason- the reason the phase is skipped
-
executedLifecycle
Log that the lifecycle has executed.- 参数:
request- the build request
-
taggedImage
Log that a tag has been created.- 参数:
tag- the tag reference
-
failedCleaningWorkDir
Log that a cache cleanup step was not completed successfully.- 参数:
cache- the cacheexception- any exception that caused the failure- 从以下版本开始:
- 3.2.6
-
sensitiveTargetBindingDetected
Log that a binding with a sensitive target has been detected.- 参数:
binding- the binding- 从以下版本开始:
- 3.4.0
-
toSystemOut
Factory method that returns aBuildLogthe outputs toSystem.out.- 返回:
- a build log instance that logs to system out
-
to
Factory method that returns aBuildLogthe outputs to a givenPrintStream.- 参数:
out- the print stream used to output the log- 返回:
- a build log instance that logs to the given print stream
-