Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLog ¶
func NewFileLog(opts ...FileOption) *golog.Logger
func NewKafkaLog ¶
Types ¶
type FileAdapter ¶
type FileAdapter struct {
// contains filtered or unexported fields
}
func NewFileAdapter ¶
func NewFileAdapter(opt ...FileOption) *FileAdapter
func (*FileAdapter) Write ¶
func (fa *FileAdapter) Write(msg *golog.Message)
type FileOption ¶
type FileOption interface {
// contains filtered or unexported methods
}
func FileMaxSizeOption ¶
func FileMaxSizeOption(maxSize int64) FileOption
func FilePathOption ¶
func FilePathOption(filepath string) FileOption
type KafkaAdapter ¶
type KafkaAdapter struct {
// contains filtered or unexported fields
}
func NewKafkaAdapter ¶
func NewKafkaAdapter(topic string, opt gokafka.Config) *KafkaAdapter
func (*KafkaAdapter) CloseKafka ¶
func (fa *KafkaAdapter) CloseKafka()
func (*KafkaAdapter) Write ¶
func (fa *KafkaAdapter) Write(msg *golog.Message)
Click to show internal directories.
Click to hide internal directories.