=== AddonLogic Debug Log Viewer ===
Contributors: snehalpancholi
Tags: debug, log, developer, debugging, error log
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

View the WordPress debug.log in the admin with colour-coded type filtering, keyword search, pagination, and a clear button.

== Description ==

AddonLogic Debug Log Viewer displays the contents of `debug.log` directly in the WordPress admin dashboard — no FTP or SSH required. Entries are colour-coded by type (Fatal, Warning, Notice, Deprecated, Stack trace) and the viewer supports keyword filtering and pagination for large log files.

**Features:**

* Reads `WP_DEBUG_LOG` path automatically (supports custom log paths)
* Colour-coded dark-theme log viewer
* Filter by error type: Fatal, Warning, Notice, Deprecated, Stack trace, Other
* Full-text keyword search with match highlighting
* Newest entries shown first
* 200 lines per page with simple pagination
* One-click Clear Log button (with confirmation prompt)
* File path, size, and last-modified timestamp displayed
* Admin-only access

== Installation ==

1. Upload the `debug-log-viewer` folder to `/wp-content/plugins/`.
2. Activate via the Plugins screen.
3. Go to **Tools → Debug Log**.

== Frequently Asked Questions ==

= How do I enable debug logging? =
Add these lines to your wp-config.php:
`define( 'WP_DEBUG', true );`
`define( 'WP_DEBUG_LOG', true );`
`define( 'WP_DEBUG_DISPLAY', false );`

= Where is the log file? =
By default at `wp-content/debug.log`. If you've set `WP_DEBUG_LOG` to a custom path, this plugin reads that path automatically.

= Is it safe to clear the log? =
Yes. Clearing empties the file but does not delete it. Future errors will be appended as normal.

== Changelog ==

= 1.0.0 =
* Initial release.
