App::JobLog::Log::Line - encapsulates one line of log text
version 1.042
App::JobLog::Log::Line encapsulates a line of text from the log -- the semantics of such a line and the code required to construct, parse, or serialize it.
For composing a log line out of a hash of attributes.
For parsing a line in an existing log. Expects string to parse as an argument.
Produces an object semantically identical to that on which it was invoked but stored without shared references so changes to the latter will not effect the former.
Serializes object to the string that would represent it in a log.
Represents optional DateTime object in the format used in the log. If no argument is provided, the timestamp of the line itself is returned.
Accessor to text attribute of line, if any. Should only be defined for well formed log lines. Is lvalue.
Accessor to array reference containing tags, if any. Is lvalue.
Accessor to comment value, if any. Should only be defined for comment lines. Is lvalue.
Accessor to time value, if any. Should only be defined for event lines. Lvalue.
Accessor to reference to description list. Should only be defined for lines describing the beginning of an event. Lvalue.
Whether lines is malformed.
Whether line describes the beginning of an event.
Whether line only defines the end of an event.
Whether the line is a note rather than a terminus of an event or a comment or blank line.
Whether line has a time stamp.
Whether the line has a timestamp marking the beginning or end of a logged interval.
Whether line represents a comment in the log.
Whether object was constructed from a hash of values that contained no tags key.
tags
Whether object represents a blank line in the log.
Convert this into a comment line.
Expects list of tags. Returns whether all tags in list are present in object.
Expects list of tags. Returns whether any member of list is among tags of object.
David F. Houghton <dfhoughton@gmail.com>
This software is copyright (c) 2011 by David F. Houghton.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::JobLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::JobLog
CPAN shell
perl -MCPAN -e shell install App::JobLog
For more information on module installation, please visit the detailed CPAN module installation guide.