log

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDefaultLogger

func InitDefaultLogger(w io.Writer, level slog.Level) *slog.Logger

InitDefaultLogger initializes a default logger with the default writer and log level.

func NewJSONHandler

func NewJSONHandler(w io.Writer, level slog.Level) slog.Handler

func NewLogger

func NewLogger(handler slog.Handler) *slog.Logger

NewLogger creates a new logger with the given handler.

func SetOtelGlobalLogger

func SetOtelGlobalLogger(ctx context.Context, logger *slog.Logger)

Types

This section is empty.

Jump to

Keyboard shortcuts

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