logs

package
v0.0.0-...-5255ffc Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(funcName string) zerolog.Logger

func GetLogger

func GetLogger() zerolog.Logger

func SetLogger

func SetLogger(l zerolog.Logger)

Types

type LokiPayload

type LokiPayload struct {
	Streams []LokiStream `json:"streams"`
}

type LokiStream

type LokiStream struct {
	Stream map[string]string `json:"stream"`
	Values [][]string        `json:"values"`
}

type LokiWriter

type LokiWriter struct {
	// contains filtered or unexported fields
}

func NewLokiWriter

func NewLokiWriter(url string, labels map[string]string) *LokiWriter

func (*LokiWriter) Write

func (w *LokiWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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