[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
infobot.log location
- Date: Thu, 23 Dec 1999 09:28:20 -0600
- From: David Blache <alterego@austin.rr.com>
- Subject: infobot.log location
I'm not sure this made it to the list amidst all of the confusion, so I am
posting it again:
in Misc.pl:
sub log_line {
my($line) = @_;
my($logwrite) = 0;
my $s = time();
if ($param{'logfile'} ne '') {
$line =~ s/\n*$/\n/;
open(TRACK, ">>$param{logfile}");
$loglines++;
$total_loglines++;
print TRACK "$s $line";
close(TRACK); # if (TRACK);
}
}
shouldn't it be
open(TRACK, ">> $infobot_base_dir $param{logfile}");
I'd rather the log file stay in the same directory as the rest of the
bot's files, rather than being created in whatever the current wd is.