|
NAMELog::Handler::Output::Forward - Forward messages to routines.SYNOPSISuse Log::Handler::Output::Forward; my $forwarder = Log::Handler::Output::Forward->new( forward_to => sub { }, arguments => [ "foo" ], ); $forwarder->log(message => $message); DESCRIPTIONThis output module makes it possible to forward messages to sub routines.METHODSnew()Call "new()" to create a new Log::Handler::Output::Forward object.The following options are possible:
log()Call "log()" if you want to forward messages to the subroutines.Example: $forwarder->log("this message will be forwarded to all sub routines"); validate()Validate a configuration.reload()Reload with a new configuration.errstr()This function returns the last error message.FORWARDED MESSAGENote that the message will be forwarded as a hash reference.If you make changes to the reference it affects all other outputs. The hash key "message" contains the message. PREREQUISITESCarp Params::Validate 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. |