Google Ads API에 대한 요청, 응답, 요약 메시지는 자체 맞춤 로거 또는 Ruby 라이브러리의 기본 로거에 로깅될 수 있습니다.
로그 수준
라이브러리는 다양한 유형의 이벤트를 여러 로그 수준으로 로깅합니다. API 응답이 성공하면 요약이 INFO에 로깅되고 전체 요청과 응답은 DEBUG에 로깅됩니다. 요청에 API 오류가 발생하면 요약 메시지가 WARN에 로깅되고 전체 요청 및 응답이 INFO에 로깅됩니다.
부분 실패의 경우 부분 실패 세부정보가 DEBUG에 기록됩니다.
구성
로거는 google_ads_config.rb 구성의 일부로 구성할 수 있습니다. log_level 및 log_target 필드를 지정하여 기본 로거를 설정하거나 logger를 지정하여 자체 로거를 완전히 지정할 수 있습니다. logger를 지정하면 log_level 및 log_target가 무시됩니다.
client.logger=를 사용하여 클라이언트를 인스턴스화한 후 로거를 지정할 수도 있습니다.
[[["이해하기 쉬움","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"]],["최종 업데이트: 2024-06-29(UTC)"],[[["The Google Ads API Ruby library allows logging of requests, responses, and summaries to custom or default loggers."],["Different log levels are used for successful responses (`INFO`, `DEBUG`) and errors (`WARN`, `INFO`, `DEBUG`)."],["Logging can be configured through the `google_ads_config.rb` file using `log_level`, `log_target`, or a custom `logger`."],["After client instantiation, the logger can be specified using `client.logger=`."]]],[]]