คำขอ คำตอบ และข้อความสรุปที่ส่งไปยัง Google Ads API สามารถบันทึกได้ด้วยบันทึกที่กําหนดเองหรือบันทึกเริ่มต้นในคลังไคลเอ็นต์สําหรับ Perl
ระดับบันทึก
โดยไลบรารีจะบันทึกเหตุการณ์ประเภทต่างๆ ไปยังระดับบันทึกที่แตกต่างกัน ในการตอบกลับ API ที่สำเร็จ ระบบจะบันทึกสรุปที่ INFO และบันทึกคำขอและการตอบกลับทั้งหมดที่ DEBUG สําหรับคําขอที่ทําให้เกิดข้อผิดพลาด API ระบบจะบันทึกข้อความสรุปที่ WARN และบันทึกคําขอและการตอบกลับทั้งหมดที่ INFO
ไลบรารีของไคลเอ็นต์ใช้คลาสที่กําหนดเองเพื่อวัตถุประสงค์ในการบันทึกทั้งหมด และแสดงผ่านข้อบังคับGoogleAdsLogger คลาสนี้จะกำหนดค่าเริ่มต้นที่ทั้งบันทึกสรุปและบันทึกแบบละเอียดจะบันทึกลงในไฟล์ที่เกี่ยวข้องในโฟลเดอร์ logs ภายใต้ไดเรกทอรี HOME
แต่คุณสามารถลบล้างการกําหนดค่าเริ่มต้นได้โดยระบุไฟล์ log4perl.conf ในไดเรกทอรี HOME
[[["เข้าใจง่าย","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-03-12 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."]]],[]]