logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(next http.Handler) http.Handler

func JSONTo

func JSONTo(next http.Handler, output io.Writer) http.Handler

func New

func New(next http.Handler, format Format, output io.Writer) http.Handler

func Text

func Text(next http.Handler, output io.Writer) http.Handler

Types

type Format

type Format string
const (
	FormatJSON Format = "json"
	FormatText Format = "text"
	FormatNone Format = "none"
)

Jump to

Keyboard shortcuts

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