log

package
v0.0.0-...-7187838 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLevel

func ContextWithLevel(ctx context.Context, level Level) context.Context

func Log

func Log(ctx context.Context, level Level, message string)

func Middleware

func Middleware(h http.Handler) http.Handler

Types

type Level

type Level string
const (
	Debug Level = "debug"
	Info  Level = "info"
)

func LevelFromContext

func LevelFromContext(ctx context.Context) (Level, bool)

Jump to

Keyboard shortcuts

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