mediamtx/internal/logger/destination_syslog_disabled.go
Alessandro Ros 3692b2448a
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
set syslog priority and do not write level and date to syslog (#4923) (#5296)
When writing log entries to syslog, pass the level (WARN, INFO, etc)
directly to syslog. Avoid writing level and date. This provides a
better integration and allows to use syslog search tools.
2025-12-27 14:06:26 +01:00

9 lines
193 B
Go

//go:build darwin || windows
package logger
import "fmt"
func newDestinationSyslog(_ string) (destination, error) {
return nil, fmt.Errorf("syslog is not available on macOS and Windows")
}