log

package module
v0.0.0-...-c3a0be5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNames

func FormatNames(fs fs.FS) []string

func LoadAllTemplates

func LoadAllTemplates(fs fs.FS) []*template.Template

Types

type Log

type Log interface {
	String() (string, float64)
	Labels() prometheus.Labels
}

type LogTemplate

type LogTemplate struct {
	Format string
	// contains filtered or unexported fields
}

func NewLogTemplate

func NewLogTemplate(format string, fs fs.FS, data LogTemplateData) (*LogTemplate, error)

func (*LogTemplate) Labels

func (l *LogTemplate) Labels() prometheus.Labels

func (*LogTemplate) String

func (l *LogTemplate) String() (string, float64)

type LogTemplateData

type LogTemplateData interface {
	Severity() string
}

Jump to

Keyboard shortcuts

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