NAME
Tail::Tool - Tool for sophisticated tailing of files
VERSION
This documentation refers to Tail::Tool version 0.4.8.
SYNOPSIS
use Tail::Tool;
# Create a new Tail::Tool object tailing /tmp/test.log
# with the spacing plugin initialised.
my $tt = Tail::Tool->new(
files => [
'/tmpl/test.log',
],
Spacing => {
short_time => 2,
short_lines => 2,
long_time => 5,
long_lines => 10,
},
...
);
# run the tail
$tt->tail();
DESCRIPTION
SUBROUTINES/METHODS
tail ()
Description: Start tailing?
run ($file, $first)
Param: $file
- Tail::Tool::File - The file to run
Param: $first
- bool - Specifies that this is the first time run has been called.
run ( $file )
Runs the the tailing of $file
.
default_printer ( @lines )
Prints @lines
to STDOUT
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
INCOMPATIBILITIES
BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
LICENSE AND COPYRIGHT
Copyright (c) 2010 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW, Australia). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.