logger

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*log.Logger
	// contains filtered or unexported fields
}

Logger wraps stdlib log.Logger with convenience methods

func New

func New(development bool) (*Logger, error)

New creates a new logger with timestamp formatting (matching sdhm style)

func (*Logger) Debug

func (l *Logger) Debug(msg string, keysAndValues ...any)

func (*Logger) Error

func (l *Logger) Error(msg string, keysAndValues ...any)

func (*Logger) Info

func (l *Logger) Info(msg string, keysAndValues ...any)

func (*Logger) Sync

func (l *Logger) Sync() error

Sync is a no-op for stdlib logger (for compatibility with zap)

func (*Logger) Warn

func (l *Logger) Warn(msg string, keysAndValues ...any)

Jump to

Keyboard shortcuts

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