Documentation
¶
Overview ¶
Package logging registers console logging flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register adds logging domain flags to the root command.
Parameters:
- rootCmd: Root Cobra command.
func Specs ¶
Specs returns logging domain flag metadata with static defaults.
NO_COLOR is listed in EnvKeys so ApplyEnvToFlags can apply presence-based semantics (https://no-color.org/). The pflag default stays false. Env is not baked into registration-time defaults. BindAll skips BindEnv for NO_COLOR so Viper does not re-parse "0"/"false" as false after presence apply.
Returns:
- []spec.FlagSpec: Logging flag specifications.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.