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.

Forum Support Thread

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 - 23 Jan 2020
Downloads 1,337

Version History

Display Log Files   -   Version: v2.2.0
This release contains changes associated with GitHub issue #14, recognizing that log-file names might now include a trailing error-severity suffix. Aligns with "Report All Errors" v3.1.0.  
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 23 Jan 2020
Author lat9
File Size 221.3 KB
PHP 5.3 Safe? No
Downloads 60
 
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.  
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 36
 
Display Log Files   -   Version: v2.1.1
This version restores the log-file sort functionality, mistakenly removed in v2.1.0.  
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 151
 
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.
 
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 109
 
Display Log Files   -   Version: v1.0.9
Update core-file overwrite to use the Zen Cart v1.5.4 version as its basis.  
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.  
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.  
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 51
 
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
 
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 94
 
Display Log Files   -   Version: v1.0.5
[*]BUGFIX - USPS shipping logs start with SHIP_usps, not just usps.  
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 41
 
Display Log Files   -   Version: v1.0.4
* BUGFIX: Unprintable characters result in blank file display.
* BUGFIX: Refreshing page after file delete results in error.
 
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.
 
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 114
 
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  
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 112
 
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
 
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 150
 
Display Log Files   -   Version: v1.0.0
 
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 94
 


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