diag1log

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TypeValue = "diagnostic.1"

	DiagnosticKey = "diagnostic"
)

Variables

This section is empty.

Functions

func ApplyParam

func ApplyParam(p Param, entry wlog.LogEntry)

func ThreadDumpV1FromGoroutines

func ThreadDumpV1FromGoroutines(goroutinesContent []byte) logging.ThreadDumpV1

ThreadDumpV1FromGoroutines unmarshals a "goroutine dump" (as formatted by panic or the runtime package) and returns a conjured logging.ThreadDumpV1 object.

func ThreadDumpV1ToGoroutines added in v1.52.0

func ThreadDumpV1ToGoroutines(threads logging.ThreadDumpV1) string

func ToParams added in v1.13.0

func ToParams(diagnostic logging.Diagnostic, inParams []Param) []wlog.Param

func WithLogger added in v1.7.0

func WithLogger(ctx context.Context, logger Logger) context.Context

Types

type Logger

type Logger interface {
	Diagnostic(diagnostic logging.Diagnostic, params ...Param)
}

func FromContext added in v1.7.0

func FromContext(ctx context.Context) Logger

func New

func New(w io.Writer) Logger

func NewFromCreator

func NewFromCreator(w io.Writer, creator wlog.LoggerCreator) Logger

type Param

type Param interface {
	// contains filtered or unexported methods
}

func UnsafeParam

func UnsafeParam(key string, value interface{}) Param

func UnsafeParams

func UnsafeParams(unsafe map[string]interface{}) Param

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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