logo       

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

php.cvs.pear

Subject: cvs: pear /Log Log.php

jon Thu Sep 26 19:20:16 2002 EDT

Modified files:
/pear/Log Log.php
Log:
- factory() should return to a reference.
- Log now extends PEAR so that drivers can benefit from its capabilities.


Index: pear/Log/Log.php
diff -u pear/Log/Log.php:1.10 pear/Log/Log.php:1.11
--- pear/Log/Log.php:1.10 Wed Sep 18 21:42:36 2002
+++ pear/Log/Log.php Thu Sep 26 19:20:16 2002
@@ -1,7 +1,9 @@
<?php
-// $Id: Log.php,v 1.10 2002/09/19 01:42:36 jon Exp $
+// $Id: Log.php,v 1.11 2002/09/26 23:20:16 jon Exp $
// $Horde: horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp $

+require_once 'PEAR.php';
+
define('PEAR_LOG_EMERG', 0);
define('PEAR_LOG_ALERT', 1);
define('PEAR_LOG_CRIT', 2);
@@ -17,11 +19,11 @@
*
* @author Chuck Hagenbuch <chuck@xxxxxxxxx>
* @author Jon Parise <jon@xxxxxxx>
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
* @since Horde 1.3
* @package Log
*/
-class Log {
+class Log extends PEAR {

/**
* Indicates whether or not the log can been opened / connected.
@@ -80,7 +82,7 @@
* false on an error.
* @access public
*/
- function factory($type, $name = '', $ident = '', $conf = array(),
+ function &factory($type, $name = '', $ident = '', $conf = array(),
$maxLevel = PEAR_LOG_DEBUG)
{
$type = strtolower($type);



--
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