Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(dst, src *flag.FlagSet)

Merge merges flags from the src FlagSet to the dst FlagSet.

https://github.com/hashicorp/consul/blob/64e35777e044a9c6122093067eacc871f440b7db/command/flags/merge.go

Types

type LogOpts

type LogOpts struct {
	LogLevel string
}

func FromConfig

func FromConfig(conf *config.Config) *LogOpts

FromConfig pulls log settings from the consul-ecs config JSON.

func (*LogOpts) Flags

func (l *LogOpts) Flags() *flag.FlagSet

Flags returns a FlagSet which can be used to add logging flags to a command.

func (*LogOpts) Logger

func (l *LogOpts) Logger() hclog.Logger

Logger returns a configured logger.

Jump to

Keyboard shortcuts

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