logging

package
v0.0.0-...-04ab0c9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(ctx context.Context)

func InitTestLogger

func InitTestLogger(t *testing.T)

func LogExecutionTime

func LogExecutionTime(msg string, ctx context.Context, f func())

func LogExecutionTimeWithResult

func LogExecutionTimeWithResult[R1 any](msg string, ctx context.Context, f func() R1) R1

func LogExecutionTimeWithResults

func LogExecutionTimeWithResults[R1 any, R2 any](msg string, ctx context.Context, f func() (R1, R2)) (R1, R2)

func SetNullLogger

func SetNullLogger()

Types

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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