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

Fix deprecation warnings around default log implementations on handlers #310

Closed PeterAdams-A closed 2 months ago

PeterAdams-A commented 2 months ago

Motivation:

Latest swift introduces new warnings when deprecated default implementations are used.

Modifications:

Add new log implementation to NoopLogHandler. Mark test of old method as deprecated to silence warning.

Result:

Warning free builds on latest swift 6 compiler.