encoder

package
v2.0.0-...-74eeffd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StackFlag = "_stack"

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