logger

package
v0.0.0-...-474332a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevLogger

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

func NewDevLogger

func NewDevLogger() *DevLogger

func (*DevLogger) Debug

func (d *DevLogger) Debug(msg string, kv ...any)

func (*DevLogger) Debugf

func (d *DevLogger) Debugf(template string, args ...any)

func (*DevLogger) Error

func (d *DevLogger) Error(msg string, kv ...any)

func (*DevLogger) Errorf

func (d *DevLogger) Errorf(template string, args ...any)

func (*DevLogger) Info

func (d *DevLogger) Info(msg string, kv ...any)

func (*DevLogger) Infof

func (d *DevLogger) Infof(template string, args ...any)

func (*DevLogger) Warn

func (d *DevLogger) Warn(msg string, kv ...any)

func (*DevLogger) Warnf

func (d *DevLogger) Warnf(template string, args ...any)

type Logger

type Logger interface {
	Info(msg string, kv ...any)
	Warn(msg string, kv ...any)
	Error(msg string, kv ...any)
	Debug(msg string, kv ...any)
	Infof(template string, args ...any)
	Warnf(template string, args ...any)
	Errorf(template string, args ...any)
	Debugf(template string, args ...any)
}

func NewLogger

func NewLogger() Logger

type ProdLogger

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

func NewProdLogger

func NewProdLogger() *ProdLogger

func (*ProdLogger) Debug

func (p *ProdLogger) Debug(msg string, kv ...any)

func (*ProdLogger) Debugf

func (p *ProdLogger) Debugf(template string, args ...any)

func (*ProdLogger) Error

func (p *ProdLogger) Error(msg string, kv ...any)

func (*ProdLogger) Errorf

func (p *ProdLogger) Errorf(template string, args ...any)

func (*ProdLogger) Info

func (p *ProdLogger) Info(msg string, kv ...any)

func (*ProdLogger) Infof

func (p *ProdLogger) Infof(template string, args ...any)

func (*ProdLogger) Warn

func (p *ProdLogger) Warn(msg string, kv ...any)

func (*ProdLogger) Warnf

func (p *ProdLogger) Warnf(template string, args ...any)

Jump to

Keyboard shortcuts

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