POE::Component::Server::Syslog - syslog services for POE
version 1.22
POE::Component::Server::Syslog->spawn( Type => 'udp', # or 'tcp' BindAddress => '127.0.0.1', BindPort => '514', InputState => \&input, ); sub input { my $message = $_[ARG0]; # .. do stuff .. }
This component provides very simple syslog services for POE.
Spawns a new listener. Requires one argument, Type, which defines the subclass to be invoked. This value can be either 'tcp' or 'udp'. All other arguments are passed on to the subclass' constructor. See POE::Component::Server::Syslog::TCP and POE::Component::Server::Syslog::UDP for specific documentation. For backward compatibility, Type defaults to udp.
Type
Matt Cashner (sungo@pobox.com)
This software is Copyright (c) 2017 by Matt Cashner (sungo@pobox.com).
This is free software, licensed under:
The (three-clause) BSD License
To install POE::Component::Server::Syslog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::Syslog
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::Syslog
For more information on module installation, please visit the detailed CPAN module installation guide.