Closed katevi closed 4 months ago
Hi! It looks like syslog handler always returns new handler even when name is empty: https://github.com/samber/slog-syslog/blob/main/handler.go#L103 .
Though golang docs https://pkg.go.dev/log/slog#Handler says:
// If the name is empty, WithGroup returns the receiver.
is it ok?
I agree. Could you please suggest a fix ?
ok I'll do that =)
Hi! It looks like syslog handler always returns new handler even when name is empty: https://github.com/samber/slog-syslog/blob/main/handler.go#L103 .
Though golang docs https://pkg.go.dev/log/slog#Handler says:
is it ok?