[dev] Re: [core] error reporting/logging

Jan Schneider janmailing@gmx.de
Mon, 17 Sep 2001 18:02:03 +0200


Zitat von Jon Parise <jon@horde.org>:

> On Mon, Sep 17, 2001 at 11:48:47AM -0400, Chuck Hagenbuch wrote:
> 
> > > Counterproduktive would be to overload the method with
> > > arguments. I propose to read the horde application from
> > > registry and just use the two arguments from the pear log().
> > > We could alternatively give an error object or a string as
> > > the error message.
> > 
> > The whole point is to wrap up things like the Log configuration
> > so you don't need to worry about it when calling the method...
> > not sure what you'd read from the registry, though? I think
> > having it take either a PEAR_Error or a string would be good;
> > other than that, it'll pretty much just mirror Log::log().
> 
> I think he meant that the log method should have knowledge of the
> current application (from the registry) so that it can be
> included in the log output.

Correct.

Jan.