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.
CHAN_INFO
Optional The level (name) to log at. Defaults to LOG_INFO.
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.
name
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.
SRC_
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 fluffy@cpan.org
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.
1 POD Error
The following errors were encountered while parsing the POD:
You have '=item 4' instead of the expected '=item 3'
To install Log::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Info
CPAN shell
perl -MCPAN -e shell install Log::Info
For more information on module installation, please visit the detailed CPAN module installation guide.