logger

package
v0.0.0-...-3c191e0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() *zerolog.Event

Debug logs a message at level Debug

func Error

func Error() *zerolog.Event

Error logs a message at level Error

func Fatal

func Fatal() *zerolog.Event

Fatal logs a message at level Fatal

func FromContext

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

FromContext retrieves the logger from the context

func Get

func Get() zerolog.Logger

Get check returns the global logger instance

func Info

func Info() *zerolog.Event

Info logs a message at level Info

func Setup

func Setup(cfg Config)

Setup initializes the logger with the given configuration

func Warn

func Warn() *zerolog.Event

Warn logs a message at level Warn

func WithContext

func WithContext(ctx context.Context) context.Context

WithContext adds the logger to the context

Types

type Config

type Config struct {
	Level       string `mapstructure:"level"`
	Environment string `mapstructure:"environment"`
}

Config holds logger configuration

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is a wrapper around zerolog.Logger

Jump to

Keyboard shortcuts

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