Blame logwatch.shared.applyxpilotdate
|
Michael Thomas |
656f3c8 |
##########################################################################
|
|
Michael Thomas |
656f3c8 |
##########################################################################
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
use Logwatch ':dates';
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
my $Debug = $ENV{'LOGWATCH_DEBUG'} || 0;
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
$SearchDate = TimeFilter('%d %b %H:%M:%S');
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
if ( $Debug > 5 ) {
|
|
Michael Thomas |
656f3c8 |
print STDERR "DEBUG: Inside ApplyXpilotDate...\n";
|
|
Michael Thomas |
656f3c8 |
print STDERR "DEBUG: Looking For: " . $SearchDate . "\n";
|
|
Michael Thomas |
656f3c8 |
}
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
while (defined($ThisLine = <STDIN>)) {
|
|
Michael Thomas |
656f3c8 |
if ($ThisLine =~ m/^$SearchDate /o) {
|
|
Michael Thomas |
656f3c8 |
print $ThisLine;
|
|
Michael Thomas |
656f3c8 |
}
|
|
Michael Thomas |
656f3c8 |
}
|
|
Michael Thomas |
656f3c8 |
|
|
Michael Thomas |
656f3c8 |
# vi: shiftwidth=3 syntax=perl tabstop=3 et
|