Versions in this module Expand all Collapse all v0 v0.1.1 Sep 10, 2024 v0.1.0 Mar 10, 2024 Changes in this version + const HookFluent + const HookLogStash + const HookSysLog + var DefaultPlugin = *NewPlugin() + type Config struct + DefaultLevel string + Hooks map[string]HookConfig + Loggers []LoggerConfig + func NewConf() *Config + type Deps struct + HTTP rest.HTTPHandlers + LogRegistry logging.Registry + ServiceLabel servicelabel.ReaderAPI + type HookConfig struct + Address string + Levels []string + Port int + Protocol string + type LoggerConfig struct + Level string + Name string + type LoggerData struct + Level string + Logger string + type Option func(*Plugin) + func UseConf(conf Config) Option + func UseDeps(cb func(*Deps)) Option + type Plugin struct + func NewPlugin(opts ...Option) *Plugin + func (p *Plugin) AfterInit() error + func (p *Plugin) Close() error + func (p *Plugin) Init() error