=== TINXDK Log Viewer Pro ===
Contributors: tinxdk
Tags: log, debug, error log, woocommerce logs, download log
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 8.2.35
Requires Plugins: tinxdk-log-viewer
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pro add-on for TINXDK Log Viewer Lite: more log files, level filter, download, clear, auto-refresh and a dashboard widget.

== Description ==

TINXDK Log Viewer Pro is an add-on for the free plugin **TINXDK Log Viewer Lite** (WordPress.org). It needs the free plugin and a licence key from tinxdkcloud.dk; without a valid licence the free plugin keeps working exactly as before and the Pro features stay off.

**What the licence unlocks**

* More log files: the PHP `error_log` file, `php_error.log` in the site root, `wp-content/error.log` and the WooCommerce log files. Only these whitelisted files can be chosen, never an arbitrary path from the request.
* Level filter (error, warning, notice, deprecated, other) with a count per level.
* Download the log file and clear it (POST with nonce and a confirmation).
* Auto-refresh every 10, 30 or 60 seconds; it pauses while you type or select text.
* Dashboard widget with the number of errors in the latest log lines.
* Automatic plugin updates from the TINXDK licence server.

Pro plugs into the free plugin through its hooks (`tinxdk_lv_sources`, `tinxdk_lv_entries`, `tinxdk_lv_toolbar_fields`, `tinxdk_lv_toolbar_actions`, `tinxdk_lv_admin_tabs`, `tinxdk_lv_admin_sections`, `tinxdk_lv_settings_*`, `tinxdk_lv_loaded`). The free plugin, its settings and the log files are never changed by Pro; deactivating Pro keeps the free plugin working and keeps the Pro setting you saved.

**Licence**

Activate under Tools > Log Viewer > License (multisite: Network admin > Settings > Log Viewer > License): enter the key (TINX-XXXX-XXXX-XXXX-XXXX) and click Activate. The licence key, the site URL and the plugin, WordPress and PHP versions are sent to the licence server (licens.tinxdkcloud.dk) when activating and deactivating, twice daily when validating and when checking for updates. Nothing else is sent. Without contact to the licence server the licence keeps working for 7 days.

Uninstalling the add-on frees the site slot at the licence server (best effort) and removes the licence data and the Pro setting. Log files are never touched.

== Installation ==

1. Install and activate the free plugin **TINXDK Log Viewer Lite** (Plugins > Add New).
2. Upload the Pro zip from tinxdkcloud.dk (Plugins > Add New > Upload Plugin) and activate it. If the free plugin is missing or too old, Pro stays inactive and shows a notice.
3. Open Tools > Log Viewer > License and enter your licence key.

== Frequently Asked Questions ==

= Does the free plugin still work without Pro or without a licence? =

Yes. Viewing the debug log, search, colour coding, stack-trace grouping and the settings never depend on Pro.

= Which version of the free plugin do I need? =

2.0.0 or newer. Otherwise Pro shows a notice and does nothing.

= I used version 1.0.0 (tinxdk-wp-log-viewer) with a licence. =

Keep the licence key: install the free plugin and this add-on, and the stored key is picked up. Deactivate and delete the old plugin.

== Changelog ==

= 2.0.1 =
* Changed: The free plugin is now called TINXDK Log Viewer Lite; this add-on's texts follow. No functional change.

= 2.0.0 =
* Split from the former single plugin: this add-on holds all licensed features, the licence client and the updater; the free plugin TINXDK Log Viewer Lite (WordPress.org) holds the rest. Renamed from `tinxdk-wp-log-viewer`.
* Boots on the free plugin's `tinxdk_lv_loaded` action; inactive with a notice when the free plugin is missing or older than 2.0.0.
* Licence tab on the free plugin's page; the stored licence data (`tinxdk_lv_license_*`) and the setting `refresh_interval` are kept.

== Upgrade Notice ==

= 2.0.1 =
The free plugin is now called TINXDK Log Viewer Lite (no functional change).

= 2.0.0 =
Needs the free plugin TINXDK Log Viewer Lite 2.0.0 or newer. Install it first.
