Switch to new logging api added in macOS 10.12 that is more memory safe and enables us to label the log messages in the future. Falls back to old API if ran on older OS versions.
rdar://25181524
Differential D95977
[Darwin] Switch to new logging api for sanitizers aralisza on Feb 3 2021, 1:55 PM. Authored by
Details Switch to new logging api added in macOS 10.12 that is more memory safe and enables us to label the log messages in the future. Falls back to old API if ran on older OS versions. rdar://25181524
Diff Detail
Event TimelineComment Actions LGTM assuming we did some manual QA/testing. (Adding a test is probably too hard to be worth it.) Comment Actions @yln We do have a test that tests the syslog functionality (test/asan/TestCases/Darwin/duplicate_os_log_reports.cpp). Unfortunately it's disabled right now because it run very well on the bots :( |