{"id":227172,"date":"2025-05-07T18:20:33","date_gmt":"2025-05-07T18:20:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/custom-logs\/"},"modified":"2025-05-27T11:47:22","modified_gmt":"2025-05-27T11:47:22","slug":"custom-logs","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/custom-logs\/","author":21153232,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"trunk","tested":"6.8.5","requires":"4.8","requires_php":"7.4","requires_plugins":null,"header_name":"Custom Debug Logs","header_author":"heavyweightdigital","header_description":"A sleek, modern plugin to manage WordPress debug logs with custom directories, levels, and advanced filtering.","assets_banners_color":"fcfcfc","last_updated":"2025-05-27 11:47:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/heavyweightdigital.co.za","rating":0,"author_block_rating":0,"active_installs":10,"downloads":453,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"1.0":{"tag":"1.0","author":"heavyweightdigital","date":"2025-05-07 18:49:04"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3289348,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3289348,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3289348,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3289348,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[39231,94,1522,1955,241949],"plugin_category":[59],"plugin_contributors":[240292],"plugin_business_model":[],"class_list":["post-227172","plugin","type-plugin","status-publish","hentry","plugin_tags-admin-tools","plugin_tags-debug","plugin_tags-logging","plugin_tags-logs","plugin_tags-wordpress-debug","plugin_category-utilities-and-tools","plugin_contributors-heavyweightdigital","plugin_committers-heavyweightdigital"],"banners":{"banner":"https:\/\/ps.w.org\/custom-logs\/assets\/banner-772x250.png?rev=3289348","banner_2x":"https:\/\/ps.w.org\/custom-logs\/assets\/banner-1544x500.png?rev=3289348","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/custom-logs\/assets\/icon-128x128.png?rev=3289348","icon_2x":"https:\/\/ps.w.org\/custom-logs\/assets\/icon-256x256.png?rev=3289348","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Custom Logs is a powerful and user-friendly plugin designed to help WordPress developers and administrators manage debug logs efficiently. With a modern interface, it offers complete control over custom and WP_DEBUG logs, including custom directories, log levels, and real-time AJAX filtering.<\/p>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li><strong>Custom Log Management<\/strong>: Define custom log file names and directories within the uploads folder.<\/li>\n<li><strong>WP_DEBUG Integration<\/strong>: Capture and redirect WP_DEBUG logs to a custom file.<\/li>\n<li><strong>Log Levels<\/strong>: Filter logs by severity (None, All, Errors, Warnings, Notices).<\/li>\n<li><strong>AJAX-Powered Log Viewer<\/strong>: Dynamically filter log entries by file and type without page reloads.<\/li>\n<li><strong>Backup and Clear Logs<\/strong>: Easily back up or clear logs with a single click.<\/li>\n<li><strong>Download Logs<\/strong>: Download custom or WP_DEBUG logs directly from the admin panel.<\/li>\n<li><strong>Sleek UI<\/strong>: A modern, responsive design with uniform input heights for a polished experience.<\/li>\n<\/ul>\n\n<p>This is the initial release (v1.0), providing a robust foundation for log management with advanced features like AJAX filtering built-in from the start.<\/p>\n\n<h3>Usage<\/h3>\n\n<ol>\n<li><strong>Enable Logging<\/strong>: Turn on custom logging and set a log level under \"Custom Logging\".<\/li>\n<li><strong>Set Log Files<\/strong>: Specify custom log file names and directories under \"General\" and \"WP Debug Logging\".<\/li>\n<li><strong>View Logs<\/strong>: Use the Log Viewer to select a log file and filter by type (e.g., Errors, Info) with real-time AJAX updates.<\/li>\n<li><strong>Manage Logs<\/strong>: Test, clear, back up, or delete logs from the \"Management\" section.<\/li>\n<li><strong>Download Logs<\/strong>: Use the \"Downloads\" section to save logs locally.<\/li>\n<\/ol>\n\n<p>To log custom messages, use the <code>custom_logs()<\/code> function in your code:\n    `php\ncustomdebug_log(\"This is a test message\", \"info\");<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>custom-debug-logs<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to the 'Custom Logs' menu in the WordPress admin dashboard to configure settings.<\/li>\n<\/ol>","raw_excerpt":"A sleek, modern plugin to manage WordPress debug logs with custom directories, levels, and advanced AJAX filtering.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/227172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=227172"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/heavyweightdigital"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=227172"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=227172"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=227172"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=227172"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=227172"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=227172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}