init(upstream:prefix:to:)
Creates a publisher that prints log messages for all publishing events.
Declaration
init(upstream: Upstream, prefix: String, to stream: (any TextOutputStream)? = nil)Parameters
- upstream:
The publisher from which this publisher receives elements.
- prefix:
A string with which to prefix all log messages.