Re: Re: enhance version of PEAR::Log display driver
| From: | Jon Parise | Date: | Thu, 09 Sep 2004 02:45:15 +0000 |
| Subject: | Re: Re: enhance version of PEAR::Log display driver | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33304@lists.php.net to get a copy of this message | ||
On Sun, Jul 18, 2004 at 08:31:52PM +0200, Laurent Laville wrote:
> BTW, if you want a such solution running in all cases (i mean composite)
> i suggest also to path the Log.php file, _extractMessage method as below :
> What do you think about it Jon ?
>
> function _extractMessage($message)
> {
> ...
> } else if (is_array($message)) {
> if (array_key_exists('message', $message)) {
> $message = $message['message'];
> } else {
> $message = print_r($message, true);
> }
> //$message = print_r($message, true); // rather than just
> this line
> ...
> }
>
> And if you pass an array like PEAR_ErrorStack, it will work better for all
> other drivers
> especially when you use 'composite' driver as me in HTML_Progress.
I just added support for this to CVS. I had missed this message when
I was preparing release 1.8.6 of the Log package earlier today,
however, so it won't be publicly available until version 1.8.7 is
released.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)