| 10 |
|
|
| 11 |
|
|
| 12 |
/** |
/** |
| 13 |
|
* <b>Cvs-Log:</b> |
| 14 |
|
* |
| 15 |
* <pre> |
* <pre> |
| 16 |
* |
* |
| 17 |
* $Id$ |
* $Id$ |
| 18 |
* |
* |
| 19 |
* $Log$ |
* $Log$ |
| 20 |
|
* Revision 1.9 2003/03/27 15:59:55 joko |
| 21 |
|
* enhanced 'function log' |
| 22 |
|
* |
| 23 |
|
* Revision 1.8 2003/03/11 02:23:02 joko |
| 24 |
|
* + fixed metadata for phpDocumentor |
| 25 |
|
* |
| 26 |
* Revision 1.7 2003/03/11 02:14:23 joko |
* Revision 1.7 2003/03/11 02:14:23 joko |
| 27 |
* + fixed metadata for phpDocumentor |
* + fixed metadata for phpDocumentor |
| 28 |
* |
* |
| 82 |
* @subpackage Class |
* @subpackage Class |
| 83 |
* @name Class::Logger |
* @name Class::Logger |
| 84 |
* |
* |
| 85 |
|
* |
| 86 |
*/ |
*/ |
| 87 |
class Class_Logger extends Class_Abstract { |
class Class_Logger extends Class_Abstract { |
| 88 |
|
|
| 113 |
// TODO: how are these type of errors handled? |
// TODO: how are these type of errors handled? |
| 114 |
//print "error-message: $msg<br>"; |
//print "error-message: $msg<br>"; |
| 115 |
} |
} |
| 116 |
|
|
| 117 |
|
//$precon = 1; |
| 118 |
|
$precon = $this->DEBUG; |
| 119 |
|
if ($precon && $level && $level <= PEAR_LOG_WARNING) { |
| 120 |
|
//user_error($msg); |
| 121 |
|
print "<b>Error[$level]</b>: $msg<br/>"; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
} |
} |
| 125 |
|
|
| 126 |
function _init_logger($logfile, $enable = 0) { |
function _init_logger($logfile, $enable = 0) { |