On Mon, 19 Aug 2002, Barbie wrote:
> > The tools contained within my DebugPrint stuff are very much self
> contained,
> > with the idea that it is a standalone module and thus is easier for
> newbies
> > to install and use. With the Log::Dispatch stuff, although it works on a
> > similar principle, it's all OO designed and implemented, whereas mine
> isn't.
> > Just plugin and go. No worrying about low level modules/scripts keeping
> > track of the object reference.
Hiding the dispatcher is fairly easy:
my $dispatcher = ... ; # make dispatcher
sub log_message
{
$dispatcher->log( level => shift, message => shift );
}
There are obviously many possible varations on this scheme.
-dave
/*==================
www.urth.org
we await the New Sun
==================*/