in reply to Debug flags

Hi,

Have you looked at log4perl.

Might be a little overkill if you are just trying to do something quickly, but believe addresses the core thing you are getting at.

nandeya

Replies are listed 'Best First'.
Re^2: Debug flags
by bobf (Monsignor) on Nov 22, 2004 at 22:26 UTC

    Log4perl has an easy mode that provides simplified logging functionality in short scripts. Search the docs for "easy mode" and "stealth logger". I've never used it (yet!), but it looks like it is as simple as:

    use Log::Log4perl qw(:easy); Log::Log4perl->easy_init( PARAMS_GO_HERE );