prometheus

package
v0.0.0-...-cda2eac Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 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"`
	Caller       bool     `yaml:"caller" json:"caller"`
	CallerSkip   int      `yaml:"caller_skip" json:"caller_skip"`
}

func (*Config) UnmarshalYAML

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