Display Log Files

Description
There have been many times that I've taken a look in one of my Zen Cart's /logs (or /cache for Zen Cart v1.5.0) directories and found some debug log files that I wasn't previously aware of. This plugin allows an admin user to view (and selectively delete) any files with names that match:

myDEBUG-*.log
AIM_Debug_*.log
SIM_Debug_*.log
FirstData_Debug_*.log
Linkpoint_Debug_*.log
Paypal*.log
paypal*.log
ipn_*.log
zcInstall*.log
notify*.log

The plugin searches only in these directories for the matching log-files:

/cache
/logs
/includes/modules/payment/paypal/logs

Once installed, the plugin can be accessed by a signed-in and authorized admin user by selecting Tools->Display Log Files.

NOTE: Due to the potentially sensitive nature of the information contained in some of the log files, I suggest that you run your admin in SSL mode if you use this plugin.

The tool allows the logged-in (and authorized) admin user to:

Sort the log files, either ascendingly or descendingly, by last-modified/creation date.
Select (via checkbox) and then delete only the log files selected.
Delete all log files currently being viewed.
View the contents of an individual log file.
+ Download Latest

Forum Support Thread

Submit An Updated Version
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5, v1.5.6
Original Author lat9
Last Updated by lat9 - 5 Sep 2019
Downloads 1,252

Version History

Display Log Files   -   Version: v2.1.2
This version corrects an integration issue with zc156+, where the logfile names were slightly changed ... causing the "Display debug-logs only?" checkbox feature to no longer work.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5, v1.5.6
Date Added 5 Sep 2019
Author lat9
File Size 220.4 KB
PHP 5.3 Safe? No
Downloads 24
 
Display Log Files   -   Version: v2.1.1
This version restores the log-file sort functionality, mistakenly removed in v2.1.0.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5
Date Added 10 Jul 2017
Author lat9
File Size 220.4 KB
PHP 5.3 Safe? Yes
Downloads 148
 
Display Log Files   -   Version: v2.0.0
v2.0.0 of the plugin has been redesigned so that there are no longer any core-file overwrites, enabling its use on all (current) Zen Cart versions in the 1.5.x series!

This version also includes a filter (so you can view only the myDEBUG*.log files) and additional sorts to enable sort-by file-size as well as creation-date.
  + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5
Date Added 12 Jun 2016
Author lat9
File Size 218.9 KB
PHP 5.3 Safe? Yes
Downloads 107
 
Display Log Files   -   Version: v1.0.9
Update core-file overwrite to use the Zen Cart v1.5.4 version as its basis.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4
Date Added 20 Dec 2014
Author lat9
File Size 107.7 KB
PHP 5.3 Safe? Yes
Downloads 202
 
Display Log Files   -   Version: v1.0.8
Updated the header-message processing introduced in v1.0.7 to just identify that more than 1 log files (myDEBUG-*.log) are present, with a link to the "Display Logs" tool.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3
Date Added 12 Aug 2014
Author lat9
File Size 107.7 KB
PHP 5.3 Safe? Yes
Downloads 74
 
Display Log Files   -   Version: 1.0.7
Just a little tweak to display notification of the error log in Admin Header area. All recognition and thanks to Lat9 and Torvista, I simply put the code together and packaged the update.   + Download
Zen Cart® Versions v1.5.1, v1.5.3
Date Added 7 Jul 2014
Author picandnix
File Size 117.6 KB
PHP 5.3 Safe? Unknown
Downloads 49
 
Display Log Files   -   Version: v1.0.6
[*]BUGFIX: Delete 'all' no longer functions if used in conjunction with the "CSS Buttons for Admin" plugin
[*]BUGFIX; Instructions aren't displayed if the admin is running in SSL mode
  + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3
Date Added 2 Feb 2014
Author lat9
File Size 102.7 KB
PHP 5.3 Safe? Yes
Downloads 93
 
Display Log Files   -   Version: v1.0.5
[*]BUGFIX - USPS shipping logs start with SHIP_usps, not just usps.   + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3
Date Added 20 Jan 2014
Author lat9
File Size 102.0 KB
PHP 5.3 Safe? Yes
Downloads 40
 
Display Log Files   -   Version: v1.0.4
* BUGFIX: Unprintable characters result in blank file display.
* BUGFIX: Refreshing page after file delete results in error.
  + Download
Zen Cart® Versions v1.5.0, v1.5.1, v1.5.2, v1.5.3
Date Added 6 Dec 2013
Author lat9
File Size 101.9 KB
PHP 5.3 Safe? Yes
Downloads 49
 
Display Log Files   -   Version: v1.0.3
[*]Added missing constant to /YOUR_ADMIN/includes/languages/english/display_logs.php.
[*]Modifications to /YOUR_ADMIN/display_logs.php to account for large files. The notifier_trace.log file, for instance, can grow to be enormous if not flushed periodically.
[*]BUGFIX: $dir variable close/unset was in the wrong place (/YOUR_ADMIN/display_logs.php).
[*]BUGFIX: Needed to convert htmlentities in the loaded file to ensure that any present don't disrupt the file display.
  + Download
Zen Cart® Versions v1.5.0, v1.5.1
Date Added 12 Sep 2013
Author lat9
File Size 101.8 KB
PHP 5.3 Safe? Yes
Downloads 113
 
Display Log Files   -   Version: v1.0.2
The file-size of the debug logs has been added to the display listing. This makes it easier to recognize similar errors   + Download
Zen Cart® Versions v1.5.0, v1.5.1
Date Added 29 Mar 2013
Author Design75
File Size 182.2 KB
PHP 5.3 Safe? Yes
Downloads 111
 
Display Log Files   -   Version: v1.0.1
* BUGFIX: v1.5.0 DIR_FS_LOGS (or any other missing directory) resulted in white-screen-of-death
* Add usps*.log files; change notify*.log to notifier*.log
  + Download
Zen Cart® Versions v1.5.0, v1.5.1
Date Added 5 Jan 2013
Author lat9
File Size 182.1 KB
PHP 5.3 Safe? Yes
Downloads 149
 
Display Log Files   -   Version: v1.0.0
  + Download
Zen Cart® Versions v1.5.0, v1.5.1
Date Added 22 Dec 2012
Author lat9
File Size 182.0 KB
PHP 5.3 Safe? Yes
Downloads 93
 


disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR