Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookConfig ¶
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 }
RedisHook to sends logs to Redis server
func NewHook ¶
func NewHook(config HookConfig) (redisHook *RedisHook, err error)
NewHook creates a hook to be added to an instance of logger
Click to show internal directories.
Click to hide internal directories.