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

Jon Parise jon@horde.org
Mon, 17 Sep 2001 11:54:11 -0400


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.

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (B.S.)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member