이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 1. Logging
As a developer, detailed logs are essential for diagnosing issues when a build fails or behaves unexpectedly. Logs provide information about what happened during the build. If logs do not show the error, you can check the build controller or histogram metrics to troubleshoot the issue.
1.1. Viewing logs 링크 복사링크가 클립보드에 복사되었습니다!
You can view the logs of a build run to identify any runtime errors and to resolve them.
Prerequisites
-
You have installed the
ocCLI. -
Optional: You have installed the
shpCLI.
Procedure
View logs of a build run. You can do so by using the
ocCLI or theshpCLI.oc logs <buildrun_resource_name>
$ oc logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow shp buildrun logs <buildrun_resource_name>
$ shp buildrun logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow