logger

package
v0.0.0-...-7c40456 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 5 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 interface {
	Debug(msg string, args ...interface{})
	Info(msg string, args ...interface{})
	Warn(msg string, args ...interface{})
	Error(msg string, args ...interface{})
}

func New

func New(cfg *config.Config) Logger

type LoggerLocal

type LoggerLocal struct {
	Log *zerolog.Logger
}

Logger implementation for local development (plain text)

func (*LoggerLocal) Debug

func (l *LoggerLocal) Debug(msg string, args ...interface{})

func (*LoggerLocal) Error

func (l *LoggerLocal) Error(msg string, args ...interface{})

func (*LoggerLocal) Info

func (l *LoggerLocal) Info(msg string, args ...interface{})

func (*LoggerLocal) Warn

func (l *LoggerLocal) Warn(msg string, args ...interface{})

type LoggerProd

type LoggerProd struct {
	Log *zerolog.Logger
}

Logger implementation for prod (json)

func (*LoggerProd) Debug

func (l *LoggerProd) Debug(msg string, args ...interface{})

func (*LoggerProd) Error

func (l *LoggerProd) Error(msg string, args ...interface{})

func (*LoggerProd) Info

func (l *LoggerProd) Info(msg string, args ...interface{})

func (*LoggerProd) Warn

func (l *LoggerProd) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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