config

package
v0.0.0-...-8c16e0d Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(verbose bool)

Types

type Field

type Field struct {
	Key     string
	Visible bool
	Padding int
	Color   []color.Attribute
}

type LevelField

type LevelField struct {
	Field  `mapstructure:",squash"`
	Colors map[string][]color.Attribute
}

func (*LevelField) GetColorAttr

func (f *LevelField) GetColorAttr(level string) []color.Attribute

type Settings

type Settings struct {
	Timestamp TimestampField
	Logger    Field
	Caller    Field
	Level     LevelField
	Message   Field
}

func GetSettings

func GetSettings() *Settings

type TimestampField

type TimestampField struct {
	Field  `mapstructure:",squash"`
	Format string
}

Jump to

Keyboard shortcuts

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