Fluent::Logger::UDP - A event logger for Fluentd in_udp
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
Fluent::Logger::UDP is a event logger for Fluentd in_udp.
create a new logger instance.
%args:
host => 'Str': default is '127.0.0.1' port => 'Int': default is 5160
Send a message to in_udp.
Return bytes length of written messages.
FUJIWARA Shunichiro <fujiwara _at_ cpan.org>
https://github.com/fluent/fluent-logger-perl
git clone git://github.com/fluent/fluent-logger-perl.git
patches and collaborators are welcome.
http://fluent.github.com/
Copyright FUJIWARA Shunichiro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Fluent::Logger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fluent::Logger
CPAN shell
perl -MCPAN -e shell install Fluent::Logger
For more information on module installation, please visit the detailed CPAN module installation guide.