zapetw

package
v1.16.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ETWCore

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

func NewETWCore

func NewETWCore(eventName string, encoder zapcore.Encoder, levelEnabler zapcore.LevelEnabler) (*ETWCore, error)

func (*ETWCore) Check

func (core *ETWCore) 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 (*ETWCore) Sync

func (core *ETWCore) Sync() error

func (*ETWCore) With

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

func (*ETWCore) Write

func (core *ETWCore) 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