From: Roland B. <rol...@ff...> - 2003-10-02 19:47:15
|
On Tue, 30 Sep 2003 17:48:15 -0700 Mike Schilli <msc...@ao...> wrote: MS> Roland Bauer wrote: MS> MS> > If I wrote init("$ENV{HOME}/log4perl.conf") this would be portable MS> > neither. MS> > It would be just *my* modules fault instead of Log4perl's fault ;-) MS> MS> Exactly. What do you gain by omitting the path and relying on a MS> default? MS> We can certainly discuss this, I'm just not (yet) seeing the benefit. MS> Do MS> you have a scenario? I think defaults are mostly a good idea. They make things easier where you do not need full control. For most situations I personally would like to use the same configuration. So a default would be nice (for me). MS> there's two different ways to use qw(:easy): MS> MS> 1) use qw(:easy) and easy_init() - one-parameter-init plus macros MS> 2) use qw(:easy) and init() - just use the DEBUG(), ERROR(), ... macros Calling init without an argument does not seem to work, even if I use ":easy" ... or did I misunderstand your information? Regards Roland |