#44750 [Opn->Csd]: request for generic phd logger

From: Date: Sat, 03 May 2008 23:59:46 +0000
Subject: #44750 [Opn->Csd]: request for generic phd logger
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-790@lists.php.net to get a copy of this message
ID: 44750 Updated by: bjori@php.net Reported By: philip@php.net -Status: Open +Status: Closed Bug Type: Doc Build problem Operating System: Mac PHP Version: Irrelevant -Assigned To: +Assigned To: bjori New Comment: This bug has been fixed in CVS. Since the websites are not directly updated from the CVS server, the fix might need some time to spread across the globe to all mirror sites, including PHP.net itself. Thank you for the report, and for helping us make PHP.net better. - Added a "generic logging capabilities" - Added VERBOSE_NOVERSION (disabled by default) - Missing mappers already triggers E_USER_WARNING. Missing translated text is however beyond the scope of the PhD-renderer... It would be possible if we used xml:lang for all root elements though, which we however don't for whatever reason. Previous Comments: ------------------------------------------------------------------------ [2008-04-17 00:32:34] philip@php.net Description: ------------ This request is for generic logging capabilities in PhD. For example, let's say we want to log every function that lacks version information (when a function is available in PHP/PECL, via versions.xml, via functable.php) then currently we might define $missingVersions and add this to phpdotnet.php: if (!isset($this->versions[$funcname])) { self::$missingVersions[] = $funcname; } And in build.php: print_r(array_unique(phpdotnet::$missingVersions)); Rather, it would be nice to instead officially log such information in one place so instead of some variable, something like: if (!isset($this->versions[$funcname])) { log_errors('missing_versions', $funcname); } Then have a single place to categorically output all such logged errors. We'd also log missing mappers, missing translated text, etc. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44750&edit=1

« previous php.doc.bugs (#790) next »