log/syslog: local messages (syslog.New()) do not work on macOS Monterey/Ventura #59229
Labels
help wanted
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
OS-Darwin
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?darwin/arm64
What did you do?
What did you expect to see?
hello
logged to the macOS Console.appWhat did you see instead?
Nothing is logged.
I noticed that I can get this working with cgo -
So syslog is working and this is not a configuration issue. I think the problem is that macOS's
logd
no longer accepts syslog messages on/var/run/syslog
, or perhaps the expected format has changed.I can see that it's listening:
But I'm not sure if calling syslog(3) is using some other mechanism to reach
logd
.The text was updated successfully, but these errors were encountered: