zapetw

package
v1.6.24 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.6.22

func New(providerName, eventName string, encoder zapcore.Encoder, levelEnabler zapcore.LevelEnabler) (zapcore.Core, func(), error)

Types

type Core added in v1.6.22

type Core struct {
	zapcore.LevelEnabler
	// contains filtered or unexported fields
}

func (*Core) Check added in v1.6.22

func (core *Core) Check(entry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry

Check is an implementation of the zapcore.Core interface's Check method. Check determines whether the logger core is enabled at the supplied zapcore.Entry's Level. If enabled, it adds the core to the CheckedEntry and returns it, otherwise returns the CheckedEntry unchanged.

func (*Core) Sync added in v1.6.22

func (core *Core) Sync() error

func (*Core) With added in v1.6.22

func (core *Core) With(fields []zapcore.Field) zapcore.Core

func (*Core) Write added in v1.6.22

func (core *Core) Write(entry zapcore.Entry, fields []zapcore.Field) error

Jump to

Keyboard shortcuts

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