LH Log sql queries to file icon
Developer Tools

LH Log sql queries to file

Log all queries to a text file for development and debugging purposes

Developer shawfactor
17 Needs attentionmaintenance
  • 15 yearson WordPress.org
  • 100plugins
  • 11,700+installs in total
  • 4.6β˜…avg. rating (134)
  • 1%of plugins updated this year
6/14 badges Profile β†’

Not recommended for new sites

Better alternatives to LH Log sql queries to file

  • Problem: Not maintained Last updated 4 years ago (version 1.00).
  • Problem: Not tested with recent WordPress Tested up to WordPress 6.0; the current release is 7.1.
  • Note: Few reviews so far No ratings on WordPress.org yet.
  • Note: Small user base Active on 10+ sites.

For a new site, or if you are planning a rebuild, choose a plugin that is still maintained. Unmaintained plugins stop getting security fixes and tend to break as WordPress and PHP move on.

Debug Log Manager icon

Best match

Debug Log Manager

Updated 1 month ago, tested with WordPress 7.1, rated 5.0/5 by 25 users, used on 10,000+ sites.

Setup guide β†’
Compare LH Log sql queries to filethis plugin Debug Log Manager
Last updated 4 years ago1 month ago
Tested up to WordPress 6.0WordPress 7.1
Active installs 10+10,000+
Rating –5.0 / 5 (25)
PHP code size 12 KB in 2 PHP files–
Hooks for developers 71

Switching from LH Log sql queries to file?

  1. Try the replacement on a staging copy of your site first.
  2. Note your current settings, shortcodes and widgets. They won't carry over automatically.
  3. Activate the new plugin, recreate the setup, then deactivate and delete the old one.

Need your settings or data moved over? We can migrate it for you.

Find other outdated plugins on your site with the free plugin checker β†’

Alternatives are matched on features and ranked by maintenance, WordPress compatibility, ratings and adoption, using WordPress.org data.

Overview

LH Log sql queries to file describes itself as: β€œLog all queries to a text file for development and debugging purposes”

It is active on 10+ WordPress sites. Developers can extend it through 0 actions and 7 filters, listed below.

We haven't published a hands-on review of LH Log sql queries to file yet. Want one, or need help with it? Send us a request.

How to install LH Log sql queries to file

  1. Open the plugin installer. In your WordPress dashboard go to Plugins β†’ Add New Plugin.
  2. Search for it. Type β€œLH Log sql queries to file” and pick the one by shawfactor.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins β†’ Add New Plugin β†’ Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install lh-log-sql-queries-to-file --activate

Requirements: WordPress 5.0+ Β· tested up to WordPress 6.0.19

Hooks & customisation

LH Log sql queries to file 1.00 fires 0 actions and 7 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

lh-log-sql-queries-to-file β€” top hooks
// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_get_all_queries_file_path", $log_path );

// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_get_http_requests_log_file_path", $log_path );

// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_all_queries_sql_logger_size_threshold", 1048576 );

// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_error_queries_sql_logger_size_threshold", 1048576 );

// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_http_requests_do_log", true, $response, $args, $url );

// Filter in lh-log-sql-queries-to-file.php
apply_filters( "{self::return_plugin_namespace()}_http_requests_logger_size_threshold", 1048576 );

Browse all 7 hooks with examples β†’

LH Log sql queries to file: frequently asked questions

Is LH Log sql queries to file free?

Yes. LH Log sql queries to file is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is LH Log sql queries to file safe to use?

LH Log sql queries to file has not been updated for 4 years. Plugins without updates stop receiving security fixes, so we recommend a maintained alternative for new sites. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does LH Log sql queries to file work with WordPress 7.1?

It isn't confirmed. LH Log sql queries to file was last tested with WordPress 6.0, 11 releases behind the current 7.1, so test it on a staging site before relying on it. It requires WordPress 5.0 or later.

How many websites use LH Log sql queries to file?

LH Log sql queries to file is active on 10+ WordPress sites, according to WordPress.org. It is currently at version 1.00, last updated on August 7, 2022.

What are the best alternatives to LH Log sql queries to file?

Plugins that do a similar job and are actively maintained include Debug Log Manager (10,000+ installs). See the side-by-side comparison.

Can I customise LH Log sql queries to file without editing its code?

Yes. LH Log sql queries to file 1.00 fires 0 actions and 7 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 7 hooks with examples.

Done for you

Let us deal with LH Log sql queries to file for you

Move to a maintained plugin without losing your settings, or keep this one and have it brought up to date.

Update an abandoned plugin

from $249

Keep the plugin your site depends on, made safe for current WordPress and PHP.

  • Compatibility with current WordPress and PHP
  • Security review and fixes
  • Deprecated code replaced
  • You keep a maintained copy

Typical turnaround: 5–10 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need LH Log sql queries to file customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with shawfactor. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by shawfactor

All 100 β†’
Not updated in 2+ years

Allows posts and pages to be archived so you can remove content from the main loop and feed without having…

3,000+ installs Updated 2 years ago 22 hooks
Not updated in 4+ years

Perform a 301 redirect from an uppercase URL to the lowercase version for all non-admin URLs

2,000+ installs Updated 4 years ago 1 hooks
Not updated in 2+ years

Upload files from an url to wordpress media library, either enter file urls in an onsite input box or click…

1,000+ installs Updated 2 years ago 1 hooks
Not updated in 8+ years

Add a HTML5 "Agree to terms" check box on login or registration forms.

800+ installs Updated 8 years ago 1 hooks

Alternatives in Developer Tools

See all β†’
Reviewed
WPCode icon

WPCode

1,937

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads…

3+ million installs Updated 1 week ago 96 hooks
Reviewed

Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code…

1+ million installs Updated 2 weeks ago 66 hooks
Reviewed

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat…

600,000+ installs Updated 4 months ago

Take control of the cron events on your WordPress website or WooCommerce store with WP Crontrol.

300,000+ installs Updated 1 month ago 43 hooks