Documentation ¶
Index ¶
- Constants
- Variables
- func Register()
- type LoggerLevel
- type LoggersEndpoint
- func (ep *LoggersEndpoint) MappingPath(op actuator.Operation, props *actuator.WebEndpointsProperties) string
- func (ep *LoggersEndpoint) Mappings(op actuator.Operation, group string) ([]web.Mapping, error)
- func (ep *LoggersEndpoint) ReadAll(_ context.Context, _ *struct{}) (interface{}, error)
- func (ep *LoggersEndpoint) ReadByName(_ context.Context, in *ReadInput) (interface{}, error)
- func (ep *LoggersEndpoint) Write(_ context.Context, in *WriteInput) (interface{}, error)
- func (ep *LoggersEndpoint) WriteEncodeResponse(_ context.Context, rw http.ResponseWriter, _ interface{}) error
- type ReadInput
- type ReadOutput
- type WriteInput
Constants ¶
View Source
const ( ID = "loggers" EnableByDefault = true )
Variables ¶
View Source
var Module = &bootstrap.Module{ Name: "actuator-loggers", Precedence: actuator.MinActuatorPrecedence, Options: []fx.Option{ fx.Invoke(register), }, }
Functions ¶
Types ¶
type LoggerLevel ¶
type LoggerLevel struct { EffectiveLevel *log.LoggingLevel `json:"effectiveLevel,omitempty"` ConfiguredLevel *log.LoggingLevel `json:"configuredLevel,omitempty"` }
type LoggersEndpoint ¶
type LoggersEndpoint struct { actuator.WebEndpointBase // contains filtered or unexported fields }
LoggersEndpoint implements actuator.Endpoint, actuator.WebEndpoint
func (*LoggersEndpoint) MappingPath ¶
func (ep *LoggersEndpoint) MappingPath(op actuator.Operation, props *actuator.WebEndpointsProperties) string
func (*LoggersEndpoint) ReadAll ¶
func (ep *LoggersEndpoint) ReadAll(_ context.Context, _ *struct{}) (interface{}, error)
ReadAll returns all loggers
func (*LoggersEndpoint) ReadByName ¶
func (ep *LoggersEndpoint) ReadByName(_ context.Context, in *ReadInput) (interface{}, error)
ReadByName find one logger by name
func (*LoggersEndpoint) Write ¶
func (ep *LoggersEndpoint) Write(_ context.Context, in *WriteInput) (interface{}, error)
Write update logger levels
func (*LoggersEndpoint) WriteEncodeResponse ¶
func (ep *LoggersEndpoint) WriteEncodeResponse(_ context.Context, rw http.ResponseWriter, _ interface{}) error
type ReadOutput ¶
type ReadOutput struct { Levels []log.LoggingLevel `json:"levels"` Loggers map[string]LoggerLevel `json:"loggers"` }
type WriteInput ¶
type WriteInput struct { Prefix string `uri:"name" binding:"required"` ConfiguredLevel *log.LoggingLevel `json:"configuredLevel"` }
Click to show internal directories.
Click to hide internal directories.