Tail::Tool - Tool for sophisticated tailing of files
This documentation refers to Tail::Tool version 0.1.0.
use Tail::Tool; # Brief but working code example(s) here showing the most common usage(s) # This section will be as far as many users bother reading, so make it as # educational and exemplary as possible. my $tt = Tail::Tool->new( files => [ '/tmpl/test.log', ], Spacing => { short_time => 2, short_lines => 2, long_time => 5, long_lines => 10, }, ... ); $tt->tail();
tail ()
Description: Start tailing?
run ($file, $first)
Param: $file - Tail::Tool::File - The file to run
$file
Param: $first - bool - Specifies that this is the first time run has been called.
$first
run ( $file )
Runs the the tailing of $file.
default_printer ( @lines )
Prints @lines to STDOUT
@lines
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
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.
To install Tail::Tool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tail::Tool
CPAN shell
perl -MCPAN -e shell install Tail::Tool
For more information on module installation, please visit the detailed CPAN module installation guide.