logging

package
v0.0.0-...-363c35e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogSinkFromContext

func GetLogSinkFromContext(ctx context.Context) io.Writer

func SetLogSinkOnContext

func SetLogSinkOnContext(ctx context.Context, logSink io.Writer) context.Context

Types

type ZerologFormatter

type ZerologFormatter struct {
	// contains filtered or unexported fields
}

func NewZeroLogFormatter

func NewZeroLogFormatter(sink io.Writer) *ZerologFormatter

Creates an io.Writer that writes lines of JSON to the given sink.

func (*ZerologFormatter) Flush

func (w *ZerologFormatter) Flush()

func (*ZerologFormatter) Write

func (w *ZerologFormatter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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