os_log

On 11.3 and 11.4 I see some of the log entries are missing when using os_log(Default, "....");

Wondering if there is a configuration param I should use.

Also does it matter, if I have my own serial and concurrent queues ( 'm not worried about the sequence of the print, just that will it print into log , so some form of $ low collect I can use)

Thanks,
Prokash

Replies

Are you asking about the default log type (OSLogType.default)? Or the default log destination (OSLog.default)?

Also does it matter, if I have my own serial and concurrent queues

It does not matter to to os_log. It’s safe to call from any thread.

Having said that, using concurrent queues (either your own or the default ones) is generally considered bad form. For more info as to why that’s the case, see WWDC 2017 Session 706 Modernizing Grand Central Dispatch Usage.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"