XAS::Logmon::Input::Tail::Default - The default mixin class for tailing files.
use XAS::Logmon::Input::Tail; my $input = XAS::Logmon::Input::Tail->new( -filename => File('/home/kesteb/tukwils.lg') ); while (my $line = $input->get()) { }
This package provides a default mixin for tailing files. It uses a fairly simplestic method for tailing files.
Returns one line from the tailed file or undef if the file is moved or deleted.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2012-2015 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS::Logmon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS::Logmon
CPAN shell
perl -MCPAN -e shell install XAS::Logmon
For more information on module installation, please visit the detailed CPAN module installation guide.