Am I right that .auto is just the default privacy specifier for when an explicit one is not mentioned in the log code, and as such there is no need to ever use it explicitly?
swift
var i =123
var s = "hello"
myLogger.log("\(s, privacy: .auto), \(i, privacy: .auto)")
produces the same log as:
swift
myLogger.log("\(s), \(i)")
and that s == "private" in the logs and i == 123
Also in:
swift
myLogger.log("\(s, privacy: .auto(mask: .hash)), \(i, privacy: .auto(mask: .hash))")
that only s will be hashed as i resolves to being public so no masking is needed and 123 is displayed.
(The documentation could really use some actual examples of more use cases)
1
0
1.8k