use Apple logging subsystem on all Darwin targets

This commit is contained in:
Mitchell Hashimoto
2024-01-14 14:48:39 -08:00
parent 4d9fd2becc
commit 8c8838542f

View File

@ -130,7 +130,7 @@ pub const std_options = struct {
// //
// sudo log stream --level debug --predicate 'subsystem=="com.mitchellh.ghostty"' // sudo log stream --level debug --predicate 'subsystem=="com.mitchellh.ghostty"'
// //
if (builtin.os.tag == .macos) { if (builtin.target.isDarwin()) {
// Convert our levels to Mac levels // Convert our levels to Mac levels
const mac_level: macos.os.LogType = switch (level) { const mac_level: macos.os.LogType = switch (level) {
.debug => .debug, .debug => .debug,