logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Habunek <ivan.habu...@gmail.com>
Subject Re: trigger errors
Date Sat, 12 Nov 2011 19:36:51 GMT
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.

Regards,
Ivan

Mime
View raw message