Hi rolfy!

On Thursday 21 Jan 2010 04:03:25 rolfy wrote:
> Hi all,
> 
> I'm new here so be kind :)
> 
> I've written a module that I use at home a lot which is what has brought
> me to pause.
> 
> I currently call the module Debug, but obviously that's not an appropriate
> name.  I've searched through the cpan, and found some relatively similar
> modules, but basically this is what I've written:
> 
> Usage (obviously ignore the fact it's called 'Debug' here...)
> my $dbg = Debug->new('bDebugMode'=> $bDebugMode, 'bTestMode' =>
> $bTestMode, 'nVerboseMode'=>$bVerbose);
> 
> $dbg->print("Hello world");
> 
> $dbg->debug("Debugging Text");
> 
> $dbg->verbose("Text for Verbose mode");
> 
> $dbg->test("Text only for Test mode");
> 
> $dbg->error("Error Message");

Based on your description it seems that Log::Log4Perl does what you want:

http://search.cpan.org/dist/Log-Log4perl/

Regards,

        Shlomi Fish

[SNIPPED]

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Parody on "The Fountainhead" - http://shlom.in/towtf

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Reply via email to