Versions in this module Expand all Collapse all v1 v1.1.3 Feb 2, 2021 Changes in this version + var ErrChannelFull = errors.New("日志通道缓存已满,请取出数据") + func NewChannelWriter(ChannelLen int) *logChannelWriter + func StringToZapLevelHookFunc() mapstructure.DecodeHookFunc + type LoggerSettingS struct + ChannelBufferLen int + ChannelEncodeType string + FilePath string + LogLevel zapcore.Level + MaxAge int + MaxBackups int + MaxSize int + OutChannel bool + OutConsole bool + OutFile bool + func (s *LoggerSettingS) String() string + type ZapPool struct + L *zap.Logger + SL *zap.SugaredLogger + func NewZapPool(s *LoggerSettingS) *ZapPool + func NewZapPoolC(s *LoggerSettingS) *ZapPool + func (p ZapPool) GetLogChannel() <-chan []byte + func (p ZapPool) GetLogSettings() *LoggerSettingS + func (p ZapPool) WithCaller() *ZapPool