It's less about the system logs. I'm interested in building out an analytics package for tracking the efficiency of my app. The data will be transmitted to the server and it will be useful to include messages. My preference would be to use OSLog's token privacy system to ensure that private data stays private. That was the initial idea.
Even after that, the idea that I could construct my own logging API that would take custom objects and then support rendering a message with some interpolated string is something that I'd like to be able to do from the standpoint as a framework author. Consider:
struct HealthRecord {
let name: String
let criticalHealthRecord: HIPAA
let nonIdentifyingInformation: Int
}
Being a developer who both who both wants to provide a valuable logging experience and protect users privacy. My method will provide privacy compliance and amend the client's OSLogMessage in a single log statement by calling log(_ record: HealthRecord, _ message: OSLogInterpolation).