Module output_capture_log

Source
Expand description

Capturing an output file of running commands–both stdout and stderr, each line prepended with “O” or “E” respectively, writing those lines to a file and optionally other filehandles like a terminal. The OutputCaptureLog holds both the path, and the main filehandle in a mutex, and allows to read back the last part of the file, e.g. for when there was an error and the application wants to include that in an error message.

Structs§

CaptureOptions
OutputCaptureLog

Functions§

get_cmd_and_args
get_cmd_and_args_as_bash_string
new_proxy_thread