#available, inlines, and os.log

I'm working on an app with a home-grown, simple logging call that basically just wraps print(). I’d like to use OSLog, but I want to support iOS 9. So I’m wondering if I can correctly wrap os_log in Swift with a test for #available(iOS 10.0, *).

I’m not too concerned about performance, but I do want to preserve call-site information as much as possible. I’m not sure how Swift’s inlining support can help me, if at all.

Any recommendations on how to approach this? Thanks!