dynloglevel

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Sets up a dynamic flag to change the log level dynamically at runtime. Use in conjunction with endpoint or configmap. Code was initially in fortio.org/fortio/log before log was extracted to its own repo without any dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeFlagsDefault

func ChangeFlagsDefault(newDefault string, flagNames ...string)

ChangeFlagsDefault sets some flags to a different default. Will panic/exist if the flag is not found.

func LoggerFlagSetup

func LoggerFlagSetup(optionalFlagName ...string)

LoggerFlagSetup sets up the `loglevel` flag as a dynamic flag (or another name if desired/passed).

Types

This section is empty.

Jump to

Keyboard shortcuts

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