Log-FreeSWITCH-Line
view release on metacpan or search on metacpan
Line/Data.pm view on Meta::CPAN
my $message = $obj->message;
Get log message.
Returns string.
=head2 C<raw>
my $raw = $obj->raw($raw);
Get or set raw FreeSWITCH log entry.
Returns string.
=head2 C<time>
my $time = $obj->time;
Get log entry time.
Returns string with time in 'HH:MM:SS' format.
=head2 C<type>
my $type = $obj->type;
Get log entry type.
Returns string.
=head1 ERRORS
new():
date required
file required
file_line required
time required
type required
datetime_obj():
Cannot create DateTime object.
Error: %s
Cannot load 'DateTime' class.
Error: %s
=head1 EXAMPLE
=for comment filename=log_line_data_object.pl
use strict;
use warnings;
use Log::FreeSWITCH::Line::Data;
# Object.
my $data_o = Log::FreeSWITCH::Line::Data->new(
'date' => '2014-07-01',
'file' => 'sofia.c',
'file_line' => 4045,
'message' => 'inbound-codec-prefs [PCMA]',
'time' => '13:37:53.973562',
'type' => 'DEBUG',
);
# Print out informations.
print 'Date: '.$data_o->date."\n";
# Output:
# Date: 2014-07-01
=head1 DEPENDENCIES
L<DateTime>,
L<English>,
L<Error::Pure::Always>,
L<Error::Pure>,
L<Mo>.
=head1 SEE ALSO
=over
=item L<Log::FreeSWITCH::Line>
FreeSWITCH log line parsing and serializing.
=back
=head1 REPOSITORY
L<https://github.com/michal-josef-spacek/Log-FreeSWITCH-Line>
=head1 AUTHOR
Michal Josef Å paÄek L<mailto:skim@cpan.org>
L<http://skim.cz>
=head1 LICENSE AND COPYRIGHT
© 2014-2022 Michal Josef Å paÄek
BSD 2-Clause License
=head1 VERSION
0.08
=cut
( run in 0.619 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )