logging

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logging registers console logging flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(rootCmd *cobra.Command)

Register adds logging domain flags to the root command.

Parameters:

  • rootCmd: Root Cobra command.

func Specs

func Specs() []spec.FlagSpec

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.

Jump to

Keyboard shortcuts

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