Documentation
¶
Index ¶
- Constants
- func AddFlags(flags *flag.FlagSet)
- func DebugAddress(flags *flag.FlagSet) string
- func Handler(zapCtrl zapLogLevelController) http.Handler
- func Run(address string, zapCtrl zapLogLevelController) (ifrit.Process, error)
- func Runner(address string, zapCtrl zapLogLevelController) ifrit.Runner
- func ValidateAndNormalize(w http.ResponseWriter, r *http.Request, level []byte) (string, error)
- type DebugServerConfig
- type LagerAdapter
- type ReconfigurableSinkInterface
Constants ¶
View Source
const (
DebugFlag = "debugAddr"
)
Variables ¶
This section is empty.
Functions ¶
func DebugAddress ¶
func Run ¶
Run starts the debug server with the provided address and log controller. Run() -> runProcess() -> Runner() -> http_server.New() -> Handler()
func Runner ¶
Runner creates an ifrit.Runner for the debug server with the provided address and log controller.
func ValidateAndNormalize ¶ added in v0.55.0
Exported only for tests
Types ¶
type DebugServerConfig ¶
type DebugServerConfig struct {
DebugAddress string `json:"debug_address"`
}
type LagerAdapter ¶ added in v0.55.0
type LagerAdapter struct {
Sink ReconfigurableSinkInterface
}
LagerAdapter is an adapter for the ReconfigurableSinkInterface to work with lager.LogLevel.
func (*LagerAdapter) SetMinLevel ¶ added in v0.55.0
func (l *LagerAdapter) SetMinLevel(level lager.LogLevel)
SetMinLevel sets the minimum log level for the LagerAdapter.
type ReconfigurableSinkInterface ¶ added in v0.20.0
Click to show internal directories.
Click to hide internal directories.