configs

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConfig

type LogConfig struct {
	LogLevel      string
	LogColor      bool
	LogForceColor bool
	LogAsJSON     bool
	// contains filtered or unexported fields
}

LogConfig represents logging configuration.

func NewLogginConfig

func NewLogginConfig() *LogConfig

NewLogginConfig returns a new logging configuration.

func (*LogConfig) FlagSet

func (c *LogConfig) FlagSet() *pflag.FlagSet

FlagSet returns an instance of the flag set for the configuration.

func (*LogConfig) NewLogger

func (c *LogConfig) NewLogger(name string) hclog.Logger

NewLogger returns a new configured logger.

Jump to

Keyboard shortcuts

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