2 # The system variables - those indicated will need to be changed to suit your
3 # circumstances (and callsign)
5 # Copyright (c) 1998 - Dirk Koopman G1TLH
14 @EXPORT = qw(dbg dbgadd dbgsub dbglist isdbg);
15 @EXPORT_OK = qw(dbg dbgadd dbgsub dbglist isdbg);
18 use vars qw(%dbglevel $fp);
26 $fp = DXLog::new('debug', 'dat', 'd');
28 # add sig{__DIE__} handling
29 if (!defined $DB::VERSION) {
30 $SIG{__WARN__} = $SIG{__DIE__} = sub {
33 $fp->writeunix($t, "$t^$_");
48 print "$_\n" if defined \*STDOUT;
49 $fp->writeunix($t, "$t^$_");
59 $dbglevel{$entry} = 1;
68 delete $dbglevel{$entry};
74 return keys (%dbglevel);