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?
produces the same log as:
and that s ==> "<private>" in the logs and i ==> 123
Also in:
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)
Code Block swift var i =123 var s = "hello" myLogger.log("\(s, privacy: .auto), \(i, privacy: .auto)")
produces the same log as:
Code Block swift myLogger.log("\(s), \(i)")
and that s ==> "<private>" in the logs and i ==> 123
Also in:
Code Block 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)