--- nfo/php/libs/org.netfrag.glib/Class/Logger.php 2003/03/11 02:23:02 1.8 +++ nfo/php/libs/org.netfrag.glib/Class/Logger.php 2003/03/27 15:59:55 1.9 @@ -14,9 +14,12 @@ * *
* - * $Id: Logger.php,v 1.8 2003/03/11 02:23:02 joko Exp $ + * $Id: Logger.php,v 1.9 2003/03/27 15:59:55 joko Exp $ * * $Log: Logger.php,v $ + * Revision 1.9 2003/03/27 15:59:55 joko + * enhanced 'function log' + * * Revision 1.8 2003/03/11 02:23:02 joko * + fixed metadata for phpDocumentor * @@ -110,6 +113,14 @@ // TODO: how are these type of errors handled? //print "error-message: $msg
"; } + + //$precon = 1; + $precon = $this->DEBUG; + if ($precon && $level && $level <= PEAR_LOG_WARNING) { + //user_error($msg); + print "Error[$level]: $msg
"; + } + } function _init_logger($logfile, $enable = 0) {