1Agent::Driver::Fork(3)User Contributed Perl DocumentationAgent::Driver::Fork(3)
2
3
4

NAME

6       Log::Agent::Driver::Fork - dummy driver for forking output to multiple
7       drivers
8

SYNOPSIS

10        use Log::Agent;
11        require Log::Agent::Driver::Fork;
12        require Log::Agent::Driver::Foo;
13        require Log::Agent::Driver::Bar;
14
15        my $driver = Log::Agent::Driver::Fork->make(
16            Log::Agent::Driver::Foo->make( ... ),
17            Log::Agent::Driver::Bar->make( ... )
18        );
19        logconfig(-driver => $driver);
20

DESCRIPTION

22       This driver merely acts a multiplexer for logxxx() calls, duplicating
23       them and distributing them to other drivers.
24
25       The only routine of interest here is the creation routine:
26
27       make(@drivers)
28           Create a Log::Agent::Driver::Fork driver that duplicates logxxx()
29           calls and distributes them to the drivers in @drivers.  The
30           arguments must be the return value of the make() call for the
31           client drivers.
32

NOTES

34       Many thanks go to Daniel Lundin and Jason May who proposed this module
35       independently.  Eventually, logconfig() will support multiple drivers
36       directly. But, for now, this solution requires no change to the
37       existing interface.
38

AUTHOR

40       Mark Rogaski <mrogaski@pobox.com>
41

LICENSE

43       Copyright (C) 2002 Mark Rogaski; all rights reserved.
44
45       See Log::Agent(3) or the README file included with the distribution for
46       license information.
47

SEE ALSO

49       Log::Agent::Driver(3), Log::Agent(3).
50
51
52
53perl v5.38.0                      2023-07-20            Agent::Driver::Fork(3)
Impressum