logging

package
v0.9.242 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_TIME_FORMAT = time.TimeOnly
	LOG_CALLER_SKIP = 3 // stack frame depth
)

Variables

This section is empty.

Functions

func SetLevel

func SetLevel(level string)

func StreamLogger

func StreamLogger() grpc.StreamServerInterceptor

func UnaryLogger

func UnaryLogger() grpc.UnaryServerInterceptor

TODO NR - this needs a deep copy to properly redact

Types

type LineInfoHook

type LineInfoHook struct{}

func (LineInfoHook) Run

func (h LineInfoHook) Run(e *zerolog.Event, l zerolog.Level, msg string)

type LogWriter

type LogWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func Writer

func Writer(context string, id string, level zerolog.Level) *LogWriter

func (*LogWriter) Close

func (w *LogWriter) Close() error

func (*LogWriter) Write

func (w *LogWriter) 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