| Log-Info documentation | view source | Contained in the Log-Info distribution. |
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 CHAN_INFO.
Optional The level (name) to log at. Defaults to LOG_INFO.
If not defined, defaults to logging stdout to CHAN_INFO at LOG_INFO, and stderr to CHAN_INFO at LOG_WARNING.
Optional.
This value is actually a bitmask. The recognized bits are:
Log the process start/end with name (see the name argument). 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:
filehandle name, or an SRC_ constant.
The coderef is expected to return a string.
$?).Create & return a new thing.
Fork, passing any parameters to the procedure.
Email the author.
Martyn J. Pearce fluffy@cpan.org
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.
| Log-Info documentation | view source | Contained in the Log-Info distribution. |