On 12 November 2011 20:31, Christian Grobmeier <[email protected]> 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

Reply via email to