logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceCore

type TraceCore struct {
	Ctx *context.Context
	// contains filtered or unexported fields
}

func NewTraceCore

func NewTraceCore(c zapcore.Core, ctx *context.Context, tp trace.TracerProvider) *TraceCore

NewTraceCore Returns a new Core that adds tracing information to the log entry

func (*TraceCore) Check

func (*TraceCore) Enabled

func (c *TraceCore) Enabled(lvl zapcore.Level) bool

func (*TraceCore) Sync

func (c *TraceCore) Sync() error

func (*TraceCore) With

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

With adds structured context to the Core

func (*TraceCore) Write

func (c *TraceCore) Write(entry zapcore.Entry, fields []zapcore.Field) error

Write serializes the Entry and any Fields, along with the trace information, to the Core

Jump to

Keyboard shortcuts

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