Documentation ¶
Index ¶
- Constants
- func Log() *log.Logger
- func NewZap(cfg *LogConfig) (log *zap.Logger, err error)
- func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- type EsConfig
- type EsZapCore
- func (c *EsZapCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (c *EsZapCore) Enabled(lvl zapcore.Level) bool
- func (c *EsZapCore) Sync() error
- func (c *EsZapCore) With(fields []zapcore.Field) zapcore.Core
- func (c *EsZapCore) Write(ent zapcore.Entry, fields []zapcore.Field) error
- type LogConfig
Constants ¶
View Source
const ( JsonFormat = "json" TextFormat = "console" )
Variables ¶
This section is empty.
Functions ¶
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type EsZapCore ¶
type EsZapCore struct { zapcore.LevelEnabler // contains filtered or unexported fields }
func (*EsZapCore) Check ¶
func (c *EsZapCore) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
Click to show internal directories.
Click to hide internal directories.