PHP 5는 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 PHP 5 애플리케이션을 배포할 수 없습니다. 기존 PHP 5 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 PHP 버전으로 마이그레이션하는 것이 좋습니다.
로그 다운로드
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
App Engine은 애플리케이션이 PHP 표준 라이브러리에서
syslog()
함수를 사용하여 생성하는 메시지의 로그뿐만 아니라 표준 오류 스트림으로 출력되는 기타 메시지를 유지관리합니다.
App Engine은 각 요청도 로그에 기록합니다. 각 로그 심각도 수준(4는 심각, 3은 오류, 2는 경고, 1은 정보, 0은 디버그)에는 고정된 버퍼 사이즈가 지정되며 이 사이즈로 액세스할 수 있는 로그 정보의 양이 제어됩니다. 일반적으로 더 낮은 로그 수준에서 로깅 기능을 더 많이 사용하므로 이러한 수준에서는 로그 이벤트 기간이 더 짧습니다.
지난 90일 동안의 앱 로그를 찾아보려면 Google Cloud 콘솔의 로그 페이지를 사용할 수도 있습니다.
로그 요청
appcfg
도구는 현재 종료되었습니다.
대체 도구인 Google Cloud CLI는 로그 다운로드 기능을 지원하지 않지만 gcloud app logs
명령어를 사용하여 로그를 볼 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-04(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eApp Engine logs application messages from the \u003ccode\u003esyslog()\u003c/code\u003e function and standard error stream, alongside recording each request.\u003c/p\u003e\n"],["\u003cp\u003eLog severity levels have fixed buffer sizes, with lower levels (DEBUG, INFO) having smaller time windows due to higher usage.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud console's Logs page allows browsing of app logs from the last 90 days.\u003c/p\u003e\n"],["\u003cp\u003eWhile the \u003ccode\u003eappcfg\u003c/code\u003e tool is shut down, the Google Cloud CLI can view logs via \u003ccode\u003egcloud app logs\u003c/code\u003e commands.\u003c/p\u003e\n"]]],[],null,["# Downloading Logs\n\nApp Engine maintains a log of messages that your application emits using the `syslog()` function from the PHP standard library, as well as other messages printed to the standard error stream. App Engine also records each request in the log. Each log severity level (4 for CRITICAL, 3 for ERROR, 2 for WARNING, 1 for INFO, 0 for DEBUG) has a fixed buffer size that controls the amount of log information you can access. Normally, you use logging features more at lower log levels; thus, the time window is smaller for log events at these levels.\n\nTo browse your app's logs of the last 90 days, you can also use the\n[Logs page](https://console.cloud.google.com/logs) in the Google Cloud console.\n\nRequesting the logs\n-------------------\n\nThe `appcfg` tool is now [shut down](/appengine/docs/legacy/standard/php/sdk-gcloud-migration).\nThe replacement, [Google Cloud CLI](/sdk/docs), does not support the ability to\ndownload logs; however, you can view your logs using the\n[`gcloud app logs` commands](/sdk/gcloud/reference/app/logs)."]]