util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) *httplog.Logger

GetLogger returns the logger from the given context.

Example:

logger := ctxlogutil.GetLogger(ctx)

func GetRunLogger added in v0.14.0

func GetRunLogger(ctx context.Context) *httplog.Logger

GetRunLogger returns the run logger from the given context.

func GetRunLoggerBuffer added in v0.14.0

func GetRunLoggerBuffer(ctx context.Context) *bytes.Buffer

GetRunLoggerBuffer returns the run logger buffer from the given context.

func LogToAll added in v0.14.0

func LogToAll(sysLogger *httplog.Logger, runLogger *httplog.Logger, level string, message string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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