logo       

cvs: pear /Log Log.php: msg#00618

php.cvs.pear

Subject: cvs: pear /Log Log.php

jon Fri Sep 27 12:12:14 2002 EDT

Modified files:
/pear/Log Log.php
Log:
Provide abstract implementations of the close() and log() methods in the
Log base class.


Index: pear/Log/Log.php
diff -u pear/Log/Log.php:1.11 pear/Log/Log.php:1.12
--- pear/Log/Log.php:1.11 Thu Sep 26 19:20:16 2002
+++ pear/Log/Log.php Fri Sep 27 12:12:14 2002
@@ -1,5 +1,5 @@
<?php
-// $Id: Log.php,v 1.11 2002/09/26 23:20:16 jon Exp $
+// $Id: Log.php,v 1.12 2002/09/27 16:12:14 jon Exp $
// $Horde: horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp $

require_once 'PEAR.php';
@@ -19,7 +19,7 @@
*
* @author Chuck Hagenbuch <chuck@xxxxxxxxx>
* @author Jon Parise <jon@xxxxxxx>
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
* @since Horde 1.3
* @package Log
*/
@@ -143,6 +143,22 @@
}

return $instances[$signature];
+ }
+
+ /**
+ * Abstract implementation of the close() method.
+ */
+ function close()
+ {
+ return false;
+ }
+
+ /**
+ * Abstract implementation of the log() method.
+ */
+ function log($message, $priority = LOG_INFO)
+ {
+ return false;
}

/**



--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise