log

package module
v0.0.0-...-5f30f12 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 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
	IsFramed() bool
	SetFramed(bool)
}

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) IsFramed

func (l *LogTemplate) IsFramed() bool

func (*LogTemplate) Labels

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

func (*LogTemplate) SetFramed

func (l *LogTemplate) SetFramed(f bool)

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