If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Log Manager [Support Thread]

Log Manager [Support Thread]

Started by lat9 on 27 Feb 2017, 3:47 PM · Views: 8,740

Results 1 to 12 of 12
27 Feb 2017, 3:47 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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

5 Mar 2017, 12:49 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

The plugin is now available for download from the Zen Cart Plugins.

28 Jun 2017, 6:03 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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.

29 Jun 2017, 11:59 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

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.

7 Aug 2017, 3:33 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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.

7 Aug 2017, 11:26 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

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 ...

18 Oct 2023, 11:34 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

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.

19 Oct 2023, 10:42 AM
#8
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

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

19 Oct 2023, 10:44 AM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

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.

19 Oct 2023, 10:44 AM
#10
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Log Manager [Support Thread]

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 =)

19 Feb 2025, 5:03 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

v1.3.1 of Log Manager is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2123

This release removes an offending comma that results in a PHP Parse Error (GitHub issue #8)

4 Jul 2025, 1:40 PM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Log Manager [Support Thread]

v1.3.2 of Log Manager is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2123

This release corrects the argument ordering on a call to implode (GitHub issue #10).