apple / swift-log

A Logging API for Swift
https://apple.github.io/swift-log/
Apache License 2.0
3.48k stars 284 forks source link

Make StreamLogHandler initializers public #273

Open grdsdev opened 1 year ago

grdsdev commented 1 year ago

Feature Requests

I'd like to reuse the logic for formatting the log message and prettify the metadata from StreamLogHandler, but using my own TextOutputStream implementation.

We'd need to make the StreamLogHandler initializers public to pass a different stream.

Opening this issue to discuss if that's something we want to have, if yes I can have a PR in place for review.