Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶ added in v0.1.2
Hook to send logs via syslog.
func NewHook ¶ added in v0.1.2
NewHook creates a hook to be added to an instance of logger. This is called with `hook, err := NewHook("udp", "localhost:514", syslog.LOG_DEBUG, "")` `if err == nil { log.Hooks.Add(hook) }`
Click to show internal directories.
Click to hide internal directories.