encoder

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsyncTextEncoder

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

func NewJsonEncoder

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

func NewTextEncoder

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

Types

type AsyncTextEncoder

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

func (*AsyncTextEncoder) Clone

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

func (*AsyncTextEncoder) EncodeEntry

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

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