XAS::Apps::Logmon::XAS::Process - A class to monitor XAS log files
use XAS::Apps::Logmon::XAS::Process; my $app = XAS::Apps::Logmon::XAS::Process->new( -throws => 'xas-logs' ); exit $app->run;
This procedure will monitor XAS log files. It uses various means, depending on platform to determine when a file has changed. When a change occurs, this procedure will read until the end of file, parsing and creating messages as it goes. A status file is written into the directory of log file. It will have an extension of '.logmon'. On Linux/Unix this will be a hidden file.
This method will configure the process.
This method will start the processing.
This method provides these additonal cli options.
The number of days prior to today to ignore log lines. Defaults to 300.
The name of the process used to create the log file. Defaults to "xas-spooler".
The spool director to use. Defaults to $XAS_SPOOL/logs.
The name of the log file. Defaults to $XAS_LOG/xas-spooler.log.
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.