prometheus

package
v0.21.18 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) log.Logger

Types

type Config

type Config struct {
	Level        string   `yaml:"level" json:"level"`
	FileName     string   `yaml:"filename" json:"filename"`
	MoveFileType int      `yaml:"move_file_type" json:"move_file_type"`
	MaxLength    int64    `yaml:"max_length" json:"max_length"`
	MaxBackups   int      `yaml:"max_backups" json:"max_backups"`
	StdPrinters  []string `yaml:"std_printers" json:"std_printers"`
	TimeFormat   string   `yaml:"time_format" json:"time_format"`
}

func (*Config) UnmarshalYAML added in v0.21.17

func (p *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml.Unmarshaler interface for Config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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