$this->options =
array_replace([ 'format' => self::SIMPLE_FORMAT,
'date_format' => self::SIMPLE_DATE,
'colors' => true,
'multiline' => false,
'level_name_format' => '%-9s',
'ignore_empty_context_and_extra' => true,
],
$options);
if (class_exists(VarCloner::
class)) { $this->cloner =
new VarCloner();
$this->cloner->
addCasters([ '*' =>
$this->
castObject(...
),
]);
$this->outputBuffer =
fopen('php://memory', 'r+'
);
if ($this->options
['multiline'
]) { $output =
$this->outputBuffer;
} else { $output =
$this->
echoLine(...
);
}