How to P/Invoke os_log?
问题 What should the syntax be to call the MacOS' os_log from C# in a .NET Core console app ? Based on https://developer.apple.com/documentation/os/os_log and How to use iOS OSLog with Xamarin? and https://opensource.apple.com/source/xnu/xnu-4903.221.2/libkern/os/log.h.auto.html I was expecting something like this: using System.Runtime.InteropServices; namespace Foo { class Program { [DllImport("__Internal", EntryPoint = "os_log_create")] private static extern IntPtr os_log_create(string subsystem