Logger
final class Logger extends AbstractLogger (View source)
IBS Logger
Formatting only — the destination belongs to the sink the base class writes
to. Do not add a log() override here; it is final upstream.
Methods
Build the IBS debug record: a labelled REQUEST/RESPONSE block with the plain response indented by one tab per line.
Format the record, then hand it to the sink. The whole implementation of the contract — see the class docblock for why it may not be overridden.
Details
__construct(LogSinkInterface $sink = new EchoSink())
No description
string
format(string $post, ResponseInterface $response, string|null $error = null)
Build the IBS debug record: a labelled REQUEST/RESPONSE block with the plain response indented by one tab per line.
final void
log(string $post, ResponseInterface $response, string|null $error = null)
Format the record, then hand it to the sink. The whole implementation of the contract — see the class docblock for why it may not be overridden.