NAME
XAS::Logmon::Parser::XAS::Logs - A class to parse the XAS log files
SYNOPSIS
use XAS::Logmon::Parser::XAS::Logs;
my $parser = XAS::Logmon::Parser::XAS::Logs->new();
if (my $data = $parser->parse($line)) {
}
DESCRIPTION
This package will parse a line from a XAS log file.
METHODS
new
This method will initialize the class. It inherits from Regexp::Log and takes the same parameters. An optional format of ':tasks' will return a regex that includes the "tasks" field.
parse($line)
This method does the actual parsing. When done it will remove the trailing new line from the "message" field and convert the "datetime" field into a DateTime object. It returns a hash with the following fields:
datetime level message
SEE ALSO
AUTHOR
Kevin L. Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
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.