Google Ads API에 대한 요청, 응답, 요약 메시지는 자체 맞춤 로거 또는 Perl용 클라이언트 라이브러리의 기본 로거로 로깅할 수 있습니다.
로그 수준
라이브러리는 다양한 유형의 이벤트를 다양한 로그 수준으로 기록합니다. API 응답에 성공하면 요약이 INFO에 로깅되고 전체 요청 및 응답이 DEBUG에 로깅됩니다. API 오류가 발생한 요청의 경우 요약 메시지는 WARN에 로깅되고 전체 요청 및 응답은 INFO에 로깅됩니다.
로그 유형
로그 이름
성공 수준
실패 수준
요약
Google.Ads.GoogleAds.Summary
정보
WARN
상세정보
Google.Ads.GoogleAds.Detail
디버그
정보
부분 실패의 경우 부분 실패 세부정보가 DEBUG에 로깅됩니다.
구성
클라이언트 라이브러리는 모든 로깅 목적으로 커스텀 클래스를 사용하며 GoogleAdsLogger 모듈을 통해 노출됩니다. 이 클래스는 요약 로거와 세부정보 로거가 모두 HOME 디렉터리의 logs 폴더에 있는 상대 파일에 로깅하는 기본 구성을 제공합니다.
하지만 HOME 디렉터리에 log4perl.conf 파일을 제공하여 기본 구성을 재정의할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-26(UTC)"],[[["The Google Ads API client library for Perl allows logging of requests, responses, and summaries using a custom or default logger."],["Logging levels include `INFO`, `DEBUG`, and `WARN`, used to categorize different event types like successes, failures, and partial failures."],["The default logger configuration saves logs to the `logs` folder in your home directory, which can be customized by providing a `log4perl.conf` file."],["Logging can be controlled through the `GoogleAdsLogger` module, allowing for enabling/disabling logging or more advanced customization."]]],[]]