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(dbginit dbg dbgadd dbgsub dbglist isdbg dbgclose);
15 @EXPORT_OK = qw(dbginit dbg dbgadd dbgsub dbglist isdbg dbgclose);
18 use vars qw(%dbglevel $fp);
25 $fp = DXLog::new('debug', 'dat', 'd');
31 $fp->writeunix($t, "$t^$_");
38 # add sig{__DIE__} handling
39 if (!defined $DB::VERSION) {
40 $SIG{__WARN__} = $SIG{__DIE__} = \&_store;
46 $SIG{__DIE__} = $SIG{__WARN__} = 'DEFAULT';
59 print "$_\n" if defined \*STDOUT;
60 $fp->writeunix($t, "$t^$_");
70 $dbglevel{$entry} = 1;
79 delete $dbglevel{$entry};
85 return keys (%dbglevel);