Tail::Tool::Plugin::GroupLines - Groups real lines of a log file so that other plugins treat then as one line.
This documentation refers to Tail::Tool::Plugin::GroupLines version 0.3.0.
use Tail::Tool::Plugin::GroupLines; # 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.
Groups lines together so that they are presented as one line to other plugins. It does this by checking each real log file line and checking if it matches regex to indicate the start of a line (or if end is true the regex matches the end of lines).
An example of why you might want to do this:
A log file with long data dumps that span many lines may be hard to filter out but if those lines can be grouped together then only part of the line need match for all lines to be excluded.
process ($line, $file)
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) 2011 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.