Versions in this module Expand all Collapse all v1 v1.0.1 May 20, 2022 Changes in this version type OptionFunc + func SetLogstore(name string) OptionFunc v1.0.0 Jan 14, 2022 Changes in this version + type Option struct + type OptionFunc func(*Option) + func SetLogstor(name string) OptionFunc + func SetProject(name string) OptionFunc + func SetSource(name string) OptionFunc + func SetTopic(name string) OptionFunc + type SLSHook struct + func NewSLSHook(producerConfig *producer.ProducerConfig, opts ...OptionFunc) *SLSHook + func (hook *SLSHook) Close(timeoutMs int64) error + func (hook *SLSHook) Fire(entry *logrus.Entry) error + func (hook *SLSHook) Levels() []logrus.Level + func (hook *SLSHook) SafeClose()