encoder

package
v0.0.0-...-c4dba0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonEncoder

func NewJsonEncoder(timeFormat string, callerFullPath bool) zapcore.Encoder

func NewTextEncoder

func NewTextEncoder(timeFormat string, callerFullPath, isTerminal bool) zapcore.Encoder

Types

type JsonEncoder

type JsonEncoder struct {
	zapcore.ObjectEncoder
	// contains filtered or unexported fields
}

func (*JsonEncoder) Clone

func (e *JsonEncoder) Clone() zapcore.Encoder

func (*JsonEncoder) EncodeEntry

func (e *JsonEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)

type TextEncoder

type TextEncoder struct {
	zapcore.ObjectEncoder
	// contains filtered or unexported fields
}

func (*TextEncoder) Clone

func (e *TextEncoder) Clone() zapcore.Encoder

func (*TextEncoder) EncodeEntry

func (e *TextEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL