|
NAMELog::Handler::Output::Socket - Send messages to a socket.SYNOPSISuse Log::Handler::Output::Socket; my $sock = Log::Handler::Output::Socket->new( peeraddr => "127.0.0.1", peerport => 44444, proto => "tcp", timeout => 10 ); $sock->log(message => $message); DESCRIPTIONWith this module it's possible to send messages over the network.METHODSnew()Call "new()" to create a new Log::Handler::Output::Socket object.The following options are possible:
log()Call "log()" if you want to send a message over the socket.Example: $sock->log("message"); connect()Connect to the socket.disconnect()Disconnect from socket.validate()Validate a configuration.reload()Reload with a new configuration.errstr()This function returns the last error message.PREREQUISITESCarp Params::Validate; IO::Socket::INET; Data::Dumper; EXPORTSNo exports.REPORT BUGSPlease report all bugs to <jschulz.cpan(at)bloonix.de>.If you send me a mail then add Log::Handler into the subject. AUTHORJonny Schulz <jschulz.cpan(at)bloonix.de>.COPYRIGHTCopyright (C) 2007-2009 by Jonny Schulz. All rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |