Changeset 2226459
- Timestamp:
- 01/13/2020 11:00:44 AM (6 years ago)
- Location:
- debug-log-list/trunk
- Files:
-
- 2 edited
-
hybridsupply-log.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
debug-log-list/trunk/hybridsupply-log.php
r2226376 r2226459 3 3 * Plugin Name: Debug Log List 4 4 * Description: Extracts errors from your debug.log and groups them into individual items. 5 * Version: 0.2.2. 15 * Version: 0.2.2.2 6 6 * Author: Jay 7 7 * Author URI: https://profiles.wordpress.org/jayhybrid … … 20 20 */ 21 21 $log = array(); 22 $log_hashes = array(); 22 23 23 24 $logfile = WP_DEBUG_LOG === TRUE ? WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'debug.log' : WP_DEBUG_LOG; … … 147 148 <main> 148 149 <?php 149 if ( $logfile_contents && file_exists($logfile) ) {150 if ( isset($logfile_contents) && $logfile_contents && file_exists($logfile) ) { 150 151 if ( TRUE ) { ?> 151 152 <table> … … 226 227 227 228 case 'line': 228 echo '<td>' . substr($value, 8) . '</td>';229 echo '<td>' . number_format_i18n( substr($value, 8) ) . '</td>'; 229 230 break; 230 231 231 232 case 'occurrences': 232 $log[$i]->occurrences = array_count_values( array_column($log, 'hash') )[$log[$i]->hash];233 $log[$i]->occurrences = number_format_i18n( array_count_values( array_column($log, 'hash') )[$log[$i]->hash] ); 233 234 234 235 echo '<td>' . $log[$i]->occurrences . '</td>'; … … 316 317 else { 317 318 echo '<p>' . $logfile . ' seems to be empty.</p>'; 319 320 hybridsupply_log_count(array( 321 'count' => 0, 322 'count_all' => 0, 323 )); 318 324 } 319 325 ?> -
debug-log-list/trunk/readme.txt
r2226376 r2226459 32 32 == Changelog == 33 33 34 = 0.2.2.2 = 35 36 * Minor fixes 37 34 38 = 0.2.2.1 = 35 39
Note: See TracChangeset
for help on using the changeset viewer.