Post

Replies

Boosts

Views

Activity

Reply to structured logging is great, but logging fails with variables ?
Ah yes. That makes a lot more sense. I did finally discover the privacy tag in the documentation, but you’re right it’s pretty misleading not to see that marker. I’ll file a report as soon as I can. By the way, is there no way to set the default to public? I just wanted to replace 100s of printfs with os_log to take advantage of the new Xcode 15 console features. I was going to do a hack solution in which I preprocessed strings and replaced %s with %{public}s, #define MY_LOG(fmt_, …) \ os_log_info(OS_LOG_DEFAULT, gen_public_fmt(fmt_), __VA_ARGS__) but os_log asserts on non-constant format strings.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
Reply to structured logging is great, but logging fails with variables ?
Ah yes. That makes a lot more sense. I did finally discover the privacy tag in the documentation, but you’re right it’s pretty misleading not to see that marker. I’ll file a report as soon as I can. By the way, is there no way to set the default to public? I just wanted to replace 100s of printfs with os_log to take advantage of the new Xcode 15 console features. I was going to do a hack solution in which I preprocessed strings and replaced %s with %{public}s, #define MY_LOG(fmt_, …) \ os_log_info(OS_LOG_DEFAULT, gen_public_fmt(fmt_), __VA_ARGS__) but os_log asserts on non-constant format strings.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’23