logging

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Setup a Logging HTTP Handler to control logging level

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingHandler

func LoggingHandler(w http.ResponseWriter, r *http.Request)

Types

type LoggingResponse

type LoggingResponse struct {
	Status   int    `json:"status"`
	Hostname string `json:"host"`
	Level    string `json:"level,omitempty"`
	Error    string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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