Changeset 7773 for trunk/src/inc/LogHandler.class.php
- Timestamp:
- Apr 15, 2010, 10:40:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/LogHandler.class.php
r7765 r7773 36 36 37 37 class LogHandler { 38 private $logString; // For caching purposes 39 38 40 /* 39 41 * Function: __construct (constructor) … … 42 44 */ 43 45 public function __construct() { 46 $logString = ''; 44 47 } 45 48 … … 82 85 } 83 86 84 $time = date( "H:i.s m/d/y" ); 85 $errorString .= ' (' . $logno .' | '.$time .' | ): ' . $logstr . "\r\n\t" . 'In file "' . $logfile . '" on line "' . $logline . '"' . "\r\n"; 87 $errorString .= ' (' . $logno . ' | ' . date('Y/d/m H:i:s') . '): ' . $logstr . "\r\n\t" . 'In file "' . $logfile . '" on line "' . $logline . '"' . "\r\n"; 86 88 87 89 if ($logno <= LOG_LEVEL_ECHO) { 88 echo '<!-- ' . $errorString . ' -->';90 $this->logString .= $errorString; 89 91 } 90 92 if ((!defined('IGNORE_LOG_LEVEL_WRITE')) && ($logno <= LOG_LEVEL_WRITE)) { … … 118 120 } 119 121 } 122 123 function __destruct() { 124 echo '<!-- ' . $this->logString . ' -->'; 125 } 120 126 } 121 127
Note:
See TracChangeset
for help on using the changeset viewer.