- CLASS CONSTANTS
- CLASS COMPONENTS
- CLASS HIGHER-LEVEL FUNCTIONS
- CLASS HIGHER-LEVEL PROCEDURES
- INSTANCE CONSTRUCTION
- INSTANCE COMPONENTS
- INSTANCE HIGHER-LEVEL FUNCTIONS
- INSTANCE HIGHER-LEVEL PROCEDURES
- REPORTING BUGS
- SEE ALSO
Log::Info::Fork - a process that forks, and its output is captured and logged.
Fork, and log the output of the child.
What to execute in the child. Either as an arrayref, being the name & args of a process to execute, or as a coderef.
Optional. If defined, an arrayref of hashrefs, each having keys:
A filehandle object, or a (non-negative) integer specifying a file descriptor.
Optional The channel (name) to log to. Defaults to
Optional The level (name) to log at. Defaults to
If not defined, defaults to logging stdout to CHAN_INFO at LOG_INFO, and stderr to CHAN_INFO at LOG_WARNING.
This value is actually a bitmask. The recognized bits are:
Log the process start/end with name (see the
nameargument). This gets logged to CHAN_INFO at LOG_INFO level.
Log the process arguments (if a process passed), attempt to deparse code (if code passwd).
Log process results (as exit code if exec, or eval results if code).
Optional A name used for messages relating to this fork.
Optional A coderef for formatting messages. The ref is passed the following arguments:
The coderef is expected to return a string.
The exit status for an execd process (i.e., the value of
Create & return a new thing.
Fork, passing any parameters to the procedure.
Email the author.
Martyn J. Pearce
Copyright (c) 2002, 2003 Martyn J. Pearce. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 145:
You have '=item 4' instead of the expected '=item 3'