State line prefix
You can add a prefix before the state line only.
Default: null.
<?php
use Steevanb\ParallelProcess\Process\Process;
(new Process(['command']))->setOutputStatePrefix('foo');
See example.
Summary lines prefix
You can add a prefix before process output lines.
Default: null.
<?php
use Steevanb\ParallelProcess\Process\Process;
(new Process(['command']))->setOutputSummaryPrefix('foo');
See example.
Indentation
Indentation will be added after the configured summary prefix, to show output lines are for this process.
All lines
You can add an output prefix before any line.
It's a shortcut for calling Process::setOutputStatePrefix() then Process::setOutputSummaryPrefix() with the same prefix.
Default: null.
<?php
use Steevanb\ParallelProcess\Process\Process;
(new Process(['command']))->setOutputPrefix('foo');
See example.