loglevels

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadHandler

type ReadHandler struct {
	// contains filtered or unexported fields
}

ReadHandler is a REST handler that returns the logging spec in the format "module1=level1:module2=level2:defaultLevel".

func NewReadHandler

func NewReadHandler() *ReadHandler

NewReadHandler returns a new log levels GET handler.

func (*ReadHandler) Handler

func (h *ReadHandler) Handler() common.HTTPRequestHandler

Handler returns the HTTP handler.

func (*ReadHandler) Method

func (h *ReadHandler) Method() string

Method returns the HTTP methods.

func (*ReadHandler) Path

func (h *ReadHandler) Path() string

Path returns the HTTP path.

type WriteHandler

type WriteHandler struct {
	// contains filtered or unexported fields
}

WriteHandler is a REST handler that updates the default log level and/or log levels on specified modules.

func NewWriteHandler

func NewWriteHandler() *WriteHandler

NewWriteHandler returns a new log levels POST handler.

func (*WriteHandler) Handler

func (h *WriteHandler) Handler() common.HTTPRequestHandler

Handler returns the HTTP handler.

func (*WriteHandler) Method

func (h *WriteHandler) Method() string

Method returns the HTTP method.

func (*WriteHandler) Path

func (h *WriteHandler) Path() string

Path returns the HTTP path.

Jump to

Keyboard shortcuts

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