logging

package
v0.0.0-...-03b64f6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EnvLogMode  = "LOG_MODE"
	EnvLogLevel = "LOG_LEVEL"
)
View Source
const (
	LevelDebug = "debug"
	LevelInfo  = "info"
	LevelWarn  = "warn"
	LevelError = "error"
)

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *slog.Logger

func FromContext

func FromContext(ctx context.Context) *slog.Logger

func FromEnv

func FromEnv() *slog.Logger

func New

func New(develop bool, level string) *slog.Logger

func WithContext

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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