X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXLog.pm;h=07038433d440a3161dc6aa4c597ceefd9ea60c41;hb=4e9daf652dc564582a7c4d663de9764f3e79ae9b;hp=f96ab44aa092863d036060b3462d1e4aecea3c2f;hpb=bf0078cc89a908d46a3f28c7f1c152c2cb4d6fc5;p=spider.git diff --git a/perl/DXLog.pm b/perl/DXLog.pm index f96ab44a..07038433 100644 --- a/perl/DXLog.pm +++ b/perl/DXLog.pm @@ -27,7 +27,7 @@ package DXLog; require Exporter; @ISA = qw(Exporter); -@EXPORT = qw(Log Logclose); +@EXPORT = qw(Log LogDbg Logclose); use IO::File; use DXVars; @@ -204,6 +204,12 @@ sub Log $log->writeunix($t, join('^', $t, @_) ); } +sub LogDbg +{ + DXDebug::dbg($_) for @_; + Log(@_); +} + sub Logclose { $log->close();