NAME
Fluent::Logger::UDP - A event logger for Fluentd in_udp
SYNOPSIS
use Fluent::Logger::UDP;
my $logger = Fluent::Logger::UDP->new(
host => '127.0.0.1',
port => 5160,
);
$logger->post('{"foo":"bar"}'); # must be a scalar
DESCRIPTION
Fluent::Logger::UDP is a event logger for Fluentd in_udp.
METHODS
- new(%args)
-
create a new logger instance.
%args:
host => 'Str': default is '127.0.0.1' port => 'Int': default is 5160
- post($msg:Str)
-
Send a message to in_udp.
Return bytes length of written messages.
AUTHOR
FUJIWARA Shunichiro <fujiwara _at_ cpan.org>
REPOSITORY
https://github.com/fluent/fluent-logger-perl
git clone git://github.com/fluent/fluent-logger-perl.git
patches and collaborators are welcome.
SEE ALSO
COPYRIGHT & LICENSE
Copyright FUJIWARA Shunichiro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.