You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-user@logging.apache.org by Dennis Korbar <de...@googlemail.com> on 2009/02/27 14:37:06 UTC
Pipe PHP error output to log4php?
Hello there,
I was wondering, is there an easy way to pipe PHP's error output (like file
not found, etc.) to log4php?
Best regards,
Dennis
Re: Pipe PHP error output to log4php?
Posted by Dennis Korbar <de...@googlemail.com>.
Hey Christian,
thanks, that did the job!
Greetings,
Dennis
2009/2/28 Christian Grobmeier <gr...@gmail.com>
> Hi,
>
> you could try to use the php exception handler.
> http://de2.php.net/manual/de/function.set-exception-handler.php
> and use the logger there.
> Works fine with PHP5.
>
> Cheers,
> Christian
>
> On Fri, Feb 27, 2009 at 2:37 PM, Dennis Korbar
> <de...@googlemail.com> wrote:
> > Hello there,
> >
> > I was wondering, is there an easy way to pipe PHP's error output (like
> file
> > not found, etc.) to log4php?
> >
> > Best regards,
> >
> > Dennis
>
Re: Pipe PHP error output to log4php?
Posted by Christian Grobmeier <gr...@gmail.com>.
Hi,
you could try to use the php exception handler.
http://de2.php.net/manual/de/function.set-exception-handler.php
and use the logger there.
Works fine with PHP5.
Cheers,
Christian
On Fri, Feb 27, 2009 at 2:37 PM, Dennis Korbar
<de...@googlemail.com> wrote:
> Hello there,
>
> I was wondering, is there an easy way to pipe PHP's error output (like file
> not found, etc.) to log4php?
>
> Best regards,
>
> Dennis