log_helper

package
v2.6.40 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomStackMarshaler added in v2.6.40

func CustomStackMarshaler(err error) interface{}

CustomStackMarshaler formats stack traces similar to panic output

func SetLogLevelFromString

func SetLogLevelFromString(logLevel string)

func SetupLogger added in v2.6.40

func SetupLogger(out io.Writer) zerolog.Logger

SetupLogger configures a zerolog logger with custom formatting

Types

type CustomWriter added in v2.6.40

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

CustomWriter is a custom writer for zerolog that formats output

func NewCustomWriter added in v2.6.40

func NewCustomWriter(out io.Writer) *CustomWriter

NewCustomWriter creates a new custom writer

func (*CustomWriter) Write added in v2.6.40

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