diff options
Diffstat (limited to 'logging/host.go')
| -rw-r--r-- | logging/host.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/logging/host.go b/logging/host.go new file mode 100644 index 0000000..b58a806 --- /dev/null +++ b/logging/host.go @@ -0,0 +1,23 @@ +//go:build !linux && !windows + +package logging + +import ( + "context" + "log/slog" + + netkit "go.sudomsg.com/kit/net" +) + +func NewHostSink(ctx context.Context, level slog.Level, tag string, encoder Encoder) (Sink, error) { + return DialSyslog(ctx, netkit.NetUnixDatagram, "", encoder, SyslogOptions{ + Tag: tag, + Facility: FacilityUser, + Level: level, + }) +} + + +func IsDaemonManaged() bool { + return false +} |
