Log::Agent::Driver::Fork - dummy driver for forking output to multiple drivers
my $driver = Log::Agent::Driver::Fork->make(
Log::Agent::Driver::Foo->make( ... ),
Log::Agent::Driver::Bar->make( ... )
logconfig(-driver => $driver);
This driver merely acts a multiplexer for logxxx() calls, duplicating them and distributing them to other drivers.
The only routine of interest here is the creation routine:
Create a Log::Agent::Driver::Fork driver that duplicates logxxx() calls and distributes them to the drivers in @drivers. The arguments must be the return value of the make() call for the client drivers.
Many thanks go to Daniel Lundin and Jason May who proposed this module independently. Eventually, logconfig() will support multiple drivers directly. But, for now, this solution requires no change to the existing interface.
Mark Rogaski <firstname.lastname@example.org>
Copyright (C) 2002 Mark Rogaski; all rights reserved.
See Log::Agent(3) or the README file included with the distribution for license information.
To install Log::Agent, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.