Making os_log public on macOS Catalina
Since macOS 10.15 Catalina, you cannot easily make public logging the default anymore. os_log
hides contents from string interpolation by replacing the string with <private>
, unless you explicitly annotate the value with %{public}
. That’s probably supposed to force developers to think which parts absolutely need to be part of the log and thus reduce accidental logging of private information. Saagar Jha shows how you can enable your dev machine to log everything again.