logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: trigger errors
Date Sat, 12 Nov 2011 19:40:17 GMT
On Sat, Nov 12, 2011 at 8:36 PM, Ivan Habunek <ivan.habunek@gmail.com> wrote:
> On 12 November 2011 20:31, Christian Grobmeier <grobmeier@gmail.com> wrote:
>> Good question.
>>
>> In my world logging framework should never break an application. So...
>> what exactly is an error? A console output? standard php logfile
>> problem?
>
> What I did in the new configurator is use trigger_error() with
> E_USER_WARNING parameter. I think this is the standard PHP way to
> report non-fatal errors.
>
> The user can handle the warnings as they see fit by implementing an
> error handler. Also PHP will log the errors if an error log is
> configured in the ini file.

Read the docs - sounds good to me. Thanks.

It is a pity that one looses the magic php powers if one doesn't use
it every day :)

Cheers
Christian

>
> Regards,
> Ivan
>



-- 
http://www.grobmeier.de

Mime
View raw message