Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookConfig ¶
type HookConfig struct { Key string Format string App string Host string Password string Hostname string Port int DB int TTL int }
HookConfig stores configuration needed to setup the hook
type RedisHook ¶
type RedisHook struct { RedisPool *redis.Pool RedisHost string RedisKey string LogstashFormat string AppName string Hostname string RedisPort int TTL int DialOptions []redis.DialOption }
RedisHook to sends logs to Redis server
func NewHook ¶
func NewHook(config HookConfig, options ...redis.DialOption) (*RedisHook, error)
NewHook creates a hook to be added to an instance of logger
Click to show internal directories.
Click to hide internal directories.