Log::Dispatch::UDP - Log messages to a remote UDP socket
version 0.01
use Log::Dispatch; my $log = Log::Dispatch->new( outputs => [ [ 'UDP' host => $destination_host, port => $destination_port, min_level => 'info', ], ], ); $log->info('my message');
This class can be used to write messages to a UDP socket listening on some remote host. The datagrams themselves contain only the messages (there's no real structure to them), so you can easily listen in using netcat.
Log::Dispatch
Rob Hoelz <rob@hoelz.ro>
This software is copyright (c) 2012 by Rob Hoelz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/log-dispatch-udp/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
To install Log::Dispatch::UDP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::UDP
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::UDP
For more information on module installation, please visit the detailed CPAN module installation guide.