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.
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.
Click to show internal directories.
Click to hide internal directories.