Hook is a [logger.Hook] implementation for syslog.
| 9 | |
| 10 | // Hook is a [logger.Hook] implementation for syslog. |
| 11 | type Hook struct { |
| 12 | writer *syslog.Writer |
| 13 | level slog.Leveler |
| 14 | } |
| 15 | |
| 16 | // NewHook creates a new syslog hook. |
| 17 | // It returns nil if the syslog hook is not enabled in the config. |
nothing calls this directly
no outgoing calls
no test coverage detected