X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXLog.pm;h=171b9373d9dacf379ed2bbe802049bb6760413bf;hb=refs%2Fheads%2Fnewpc92timings;hp=f96ab44aa092863d036060b3462d1e4aecea3c2f;hpb=bf0078cc89a908d46a3f28c7f1c152c2cb4d6fc5;p=spider.git diff --git a/perl/DXLog.pm b/perl/DXLog.pm index f96ab44a..171b9373 100644 --- a/perl/DXLog.pm +++ b/perl/DXLog.pm @@ -20,14 +20,14 @@ # # Copyright (c) - 1998 Dirk Koopman G1TLH # -# $Id$ +# # package DXLog; require Exporter; @ISA = qw(Exporter); -@EXPORT = qw(Log Logclose); +@EXPORT = qw(Log LogDbg Logclose); use IO::File; use DXVars; @@ -38,12 +38,6 @@ use Carp; use strict; -use vars qw($VERSION $BRANCH); -$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); -$main::build += $VERSION; -$main::branch += $BRANCH; - use vars qw($log); $log = new('log', 'dat', 'm'); @@ -204,6 +198,12 @@ sub Log $log->writeunix($t, join('^', $t, @_) ); } +sub LogDbg +{ + DXDebug::dbg($_) for @_; + Log(@_); +} + sub Logclose { $log->close();