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