logging

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() echo.MiddlewareFunc

Middleware creates a logging middleware for echo using zerolog. This replace `lecho`, which suddenly broke.

func Setup

func Setup(opts *Options) error

Setup configures the log level and sets a console write unless not confgured otherwise

Types

type Options

type Options struct {
	Level  string
	Format string
}

Options for logging. Get them from the env or a config or something.

Jump to

Keyboard shortcuts

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