Changeset 226 for trunk/Phergie/Driver/Abstract.php
- Timestamp:
- 04/13/08 03:17:59 (7 months ago)
- Files:
-
- trunk/Phergie/Driver/Abstract.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Driver/Abstract.php
r218 r226 117 117 * 118 118 * @param string $message Debugging message 119 * @return void 120 */ 121 public function debug($message) 119 * @param bool $displayDebug Toggle whether to display the message in the 120 * console or not 121 * @return void 122 */ 123 public function debug($message, $displayDebug = true) 122 124 { 123 125 if ($this->getIni('debug')) { 124 126 $message = '[' . date('H:i:s') . '] ' . $message . PHP_EOL; 125 echo $message; 127 if ($displayDebug) { 128 echo $message; 129 } 126 130 if ($log = $this->getIni('log') and !empty($log)) { 127 131 file_put_contents($log, $message, FILE_APPEND);