in reply to Re: Debugging in packages
in thread Debugging in packages

I was looking at Devel::Messenger this morning. It looks like it does this. You can have debug levels and print certain messages only if debugging is on or above that level. It will print to files\filehandles as well. I haven't tried it yet though.

Error: Keyboard not attached. Press F1 to continue.
  • Comment on ($code or die) Re: Debugging in packages

Replies are listed 'Best First'.
Re: ($code or die) Re: Debugging in packages
by clemburg (Curate) on Jul 17, 2001 at 18:23 UTC

    For production servers on Unix, a good idea is to use Sys::Syslog. On Windows, the equivalent would be Win32::EventLog.

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com