logging

package
v0.0.0-...-fa7900d Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyLogger *logger

Functions

This section is empty.

Types

type HttpLogger

type HttpLogger interface {
}

func NewHttpLogger

func NewHttpLogger() HttpLogger

type Logger

type Logger interface {
	Debugf(msg string, args ...any)
	Infof(msg string, args ...any)
	Errorf(err error, args ...any)
	Warnf(msg string, args ...any)
	WithName(name string) Logger
	WithKV(keyValuePairs ...any) Logger
}

func New

func New(options *Options) (Logger, error)

type Options

type Options struct {
	Name string

	Dev bool // deprecated

	ShowDebugLog    bool
	ShowTime        bool
	HideCallerTrace bool
}

Jump to

Keyboard shortcuts

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