projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a nominially working aranea with DX commands converted
[spider.git]
/
perl
/
DXDebug.pm
diff --git
a/perl/DXDebug.pm
b/perl/DXDebug.pm
index 416dea0a9e79caadb7e923c2e2d2585b5ca04f09..30fe2b25d4dee2f6cd1383c674dca655be6f12f3 100644
(file)
--- a/
perl/DXDebug.pm
+++ b/
perl/DXDebug.pm
@@
-11,7
+11,7
@@
package DXDebug;
require Exporter;
@ISA = qw(Exporter);
require Exporter;
@ISA = qw(Exporter);
-@EXPORT = qw(dbginit dbg dbgadd dbgsub dbglist dbgdump isdbg dbgclose confess croak cluck);
+@EXPORT = qw(dbginit dbg dbgadd dbgsub dbglist dbgdump
dbglog
isdbg dbgclose confess croak cluck);
use strict;
use vars qw(%dbglevel $fp $callback $cleandays $keepdays);
use strict;
use vars qw(%dbglevel $fp $callback $cleandays $keepdays);
@@
-186,6
+186,13
@@
sub dbgclean
}
}
}
}
+sub dbglog
+{
+ my $sort = shift;
+ my $l = shift;
+ dbg($l);
+ DXLog::Log($sort, $l);
+}
1;
__END__
1;
__END__