logger

package module
v0.0.0-...-0408d63 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLoggingMiddleware

func AddLoggingMiddleware(handler http.Handler) http.Handler

func Debug

func Debug(ctx context.Context, message string, args ...any)

Debug ...

func Error

func Error(ctx context.Context, message string, args ...any)

Error ...

func Fatal

func Fatal(ctx context.Context, message string, args ...any)

Fatal ...

func Info

func Info(ctx context.Context, message string, args ...any)

Info ...

func SetupLogger

func SetupLogger(ctx context.Context, serviceName string, otlpTracesURL string, c Config) error

func Warn

func Warn(ctx context.Context, message string, args ...any)

Warn ...

Types

type Config

type Config struct {
	Mode string `json:"mode" yaml:"mode"`
}

type Environment

type Environment = string
const (
	Production Environment = "production"
	Staging    Environment = "staging"
)

Jump to

Keyboard shortcuts

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