Creates a mock Logger for interaction tests. Every method is a mock
function that can be asserted against; withFields() returns the same mock
so scoped calls stay observable through the parent.
Because fields are not accumulated, this fixture cannot prove structured-log
enrichment. Use createRecordingLogSink with the real logger pipeline when
field merging, levels or error entries are the behavior under test.
Creates a mock Logger for interaction tests. Every method is a mock function that can be asserted against;
withFields()returns the same mock so scoped calls stay observable through the parent.Because fields are not accumulated, this fixture cannot prove structured-log enrichment. Use
createRecordingLogSinkwith the real logger pipeline when field merging, levels or error entries are the behavior under test.