For those interested, there was a proposal (that's sadly gone a bit stale) that would make os_log
a lot easier to use by leveraging custom string interpolation.
Custom String Interpolation and Compile-time Interpretation applied to Logging.
I realize this doesn't exactly solve @idrougge's issues with Substring
and String
, but given the recent post about os_log
I thought it was relevant.