On Sat, Nov 12, 2011 at 8:36 PM, Ivan Habunek <[email protected]> wrote: > 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.
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
