Trader Information
Back to topOverview
Back to topLog Cleaner Pro — Automated var/log Cleanup for Adobe Commerce (Magento 2)
Automatically clean up bloated var/log files on a schedule, with configurable retention, safe truncate/delete modes, and an admin email report after every run.
Magento's var/log directory grows without bound by default — debug.log, system.log, exception.log, and report dumps accumulate indefinitely, quietly eating disk space until someone notices the server is out of room. Log Cleaner Pro fixes this with a fully automated, admin-configurable cleanup job, so you never have to SSH in and manually delete logs again.
Features:
- Scheduled cleanup — runs automatically on cron (weekly by default), with the schedule fully editable from the admin as a standard cron expression — no code deploy required to change it.
- Configurable retention — only cleans files older than a retention period you set; recent logs stay untouched.
- Safe truncate or full delete — choose to empty file contents in place (safe for logs Magento currently has open for writing) or remove files entirely.
- Flexible targeting — match files by glob pattern (e.g. *.log), optionally include sub directories like var/log/report, and exclude specific filenames from cleanup.
- Dry Run mode — preview exactly what would be cleaned and how much space would be freed before enabling real deletions.
- Email notifications — sends a clean, branded HTML summary to your chosen recipient after every run: files scanned, files cleaned, disk space freed, duration, and any errors — so you have a standing audit trail without checking the server.
- CLI support — trigger a cleanup on demand with bin/magento logcleaner:run, including a --dry-run flag for safe testing and a --notify flag to force a report email.
- Dedicated logging — every run is logged to its own var/log/logcleaner.log file (which is automatically excluded from its own cleanup), with full exception detail on any failure.
- Zero front-end footprint — this is a pure backend/admin extension; no storefront performance impact whatsoever.
Why choose Log Cleaner Pro ?
Unlike a cron-driven shell script, Log Cleaner Pro lives inside Magento's own admin configuration, ACL, and cron scheduler — fully upgrade-safe, fully auditable, and manageable by store admins without server access. Built with clean, typed, dependency-injected code following Magento 2 coding standards.
Developed and maintained by Rakesh Jakhar (rakesh.jakhar1986@gmail.com).
Technical Specifications
Back to topSeller profile
Seller contact
Current Version
1.0.1
Adobe Commerce platform compatibility
Adobe Commerce (cloud): 2.4 (current)
Adobe Commerce (on-prem): 2.4 (current)
Magento Open Source: 2.4 (current)
Type
Stable Build
Updated
23 July, 2026
Categories
Extensions, Site Optimization, Performance
Quality Report
Back to topAll tests were conducted on the latest versions of Adobe Commerce that existed for the compatible release lines at the moment of the extension submission. Latest versions of all other software were used, as applicable.
Release Notes
Back to top1.0.1:
- Compatible with Adobe Commerce (cloud) : 2.4
- Compatible with Adobe Commerce (on-prem) : 2.4
- Compatible with Magento Open Source : 2.4
- Stability: Stable Build
-
Description:
1.0.1 public release
Support
Back to topThe best place to start if you need help with a specific extension is to contact the developer. All Adobe Commerce developers have both a contact email and a support email listed.
Contact Vendor