Hi Dan,

On Fri, Jan 30, 2015 at 6:38 PM, Dan Ackroyd <dan...@basereality.com> wrote:

> On 21 January 2015 at 04:39, Thomas Bley <ma...@thomasbley.de> wrote:
> > In userland it is sometimes necessary to extend PHP's notices/warnings
> with additional information (e.g. username from session, stack trace, etc.)
>
> Why can't you just use in the error handler function to write the
> exact message you want?
>
> http://php.net/manual/en/function.error-log.php


All logs may be written into different log, of course.
However, not all apps write "proper"/"required" logs for _admins_. Here
comes
customized save handler.

Besides poorly written apps, apps log should use completely separated log
system IMO.
i.e. Apps should not raise any errors under normal operations and leave
user error/exception
handler to users(admins).

The reason is to detect fatal code/security/subsystem failure as soon as
possible
and to take action for it. i.e. Since errors should not happen with normal
circumstances,
all uncatched error/exception is fatal that requires immediate action.

It's not mandatory, but it's best practice IMHO.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to