Log Manager [Support Thread]
Your store's /logs folder (present in Zen Cart installations v1.5.1 and later) can accumulate files pretty quickly. This plugin enables you to set a time-period after which those .log files will be automatically removed/deleted.
No core-file changes, just three files to drop into your Zen Cart admin directory and two new settings in Configuration->Logging to enable/control the plugin's operation.
Once reviewed, you can download the plugin here: https://www.zen-cart.com/downloads.php?do=file&id=2123
Re: Log Manager [Support Thread]
The plugin is now available for download from the Zen Cart Plugins.
Re: Log Manager [Support Thread]
I've just submitted v1.1.0 to the plugins for review. That version (thanks @swguy) performs its file-checking only upon successful admin login.
Re: Log Manager [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.1.0 to the plugins for review. That version (thanks @swguy) performs its file-checking only upon successful admin login.
v1.1.0 is now available for download.
Re: Log Manager [Support Thread]
I've just submitted v1.2.0 to the plugins for review.
That version incorporates @swguy's suggestion to use a session-variable to note that the processing has been performed and creates a log to record its processing.
Re: Log Manager [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.2.0 to the plugins for review.
That version incorporates @swguy's suggestion to use a session-variable to note that the processing has been performed and creates a log to record its processing.
Now available ...
Re: Log Manager [Support Thread]
v1.3.0 of "Log Manager" is now available from the downloads.
This release contains changes associated with the following GitHub issues:
#5: Defer all processing until an admin is signed in.
#6: Enable additional directories for log removal.
Re: Log Manager [Support Thread]
You can use a CRON if your hosting allows you to set one up in cPanel
rm /home/user_directory/public_html/logs/*.log
Re: Log Manager [Support Thread]
Quote:
Originally Posted by
mprough
You can use a CRON if your hosting allows you to set one up in cPanel
rm /home/user_directory/public_html/logs/*.log
Right, but that deletes all the logs rather than deleting them by date-created.
Re: Log Manager [Support Thread]
Quote:
Originally Posted by
lat9
Right, but that deletes all the logs rather than deleting them by date-created.
Yes, just thinking some less savvy folks can use this if they can't install a plugin =)