logger

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: AGPL-3.0 Imports: 7 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 {
	TimeFormat string
}

func New

func New(timeFormat string) Logger

func (Logger) Error

func (cfg Logger) Error(e error)

func (Logger) HttpError

func (cfg Logger) HttpError(req *http.Request, e error)

func (Logger) HttpRequest

func (cfg Logger) HttpRequest(req *http.Request, code int)

func (Logger) Info

func (cfg Logger) Info(msg string)

Jump to

Keyboard shortcuts

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