Req #4314 [Opn->Fbk]: Other usage of debugLevel function which is already implemented in source code

From: Date: Mon, 06 Jun 2005 22:45:23 +0000
Subject: Req #4314 [Opn->Fbk]: Other usage of debugLevel function which is already implemented in source code
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6245@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=4314&edit=1 ID: 4314 Updated by: danielc@analysisandsolutions.com Reported By: arnaud dot didry at gmail dot com -Status: Open +Status: Feedback Type: Feature/Change Request Package: Documentation PHP Version: 5.0.3 -Assigned To: +Assigned To: danielc New Comment: Your report is unclear. Are you talking about something on a particular page that should be changed? If so, what's the URI to that page? If you're talking about particular package, you need to select the appropriate "package" (seen above when using the web interface). Previous Comments: ------------------------------------------------------------------------ [2005-05-10 11:02:19] arnaud dot didry at gmail dot com Description: ------------ I would just add another usage of debugLevel function. You didn't say that we can give a function name as parameter. It's very usefull when we don't see what happen (in my case : debugging a soap server) I see this usage is implemented on line 3538 of DataObject.php (DataObject.php,v 1.341 2005/03/23 02:03:22) Bye ! excuse me for my poor english ... Reproduce code: --------------- function DataObject_MyDebug ( $class, $message, $logtype, $level ) { $MyMessage = "<code><B>$class: $logtype:</B> $message</code><BR />\n"; error_log( $MyMessage, 3,'DataObjectLog.html' ); } // DataObject_MyDebug () DB_DataObject::debugLevel('DataObject_MyDebug'); Actual result: -------------- print all log in the file "DataObjectLog.html" ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=4314&edit=1

« previous php.pear.doc (#6245) next »