develop

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DEV = false

Variables

View Source
var (
	LOG = stackLogger{
		// contains filtered or unexported fields
	}
	OUT = os.Stdout
)

Functions

func AddLogIndent added in v1.0.7

func AddLogIndent(ctx context.Context, indent uint) context.Context

func Log added in v1.0.7

func Log(ctx context.Context, args ...any)

func LogIndent added in v1.0.7

func LogIndent(ctx context.Context) uint

func Logf added in v1.0.7

func Logf(ctx context.Context, format string, args ...any)

func WithLogIndent added in v1.0.7

func WithLogIndent(ctx context.Context, indent uint) context.Context

Types

type Logger added in v1.0.7

type Logger interface {
	Log(ctx context.Context, w io.Writer, a ...any) (n int64, err error)
	Logf(ctx context.Context, w io.Writer, fmt string, a ...any) (n int64, err error)
}

Jump to

Keyboard shortcuts

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