log

package module
v0.0.0-...-2d7de26 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 8 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLoki

func CloseLoki()

func Error

func Error(msg interface{}, keyvals ...interface{})

func Errorf

func Errorf(format string, args ...any)

func Fatal

func Fatal(msg interface{}, keyvals ...interface{})

func Fatalf

func Fatalf(format string, args ...any)

func Info

func Info(msg interface{}, keyvals ...interface{})

func Infof

func Infof(format string, args ...any)

func Warn

func Warn(msg interface{}, keyvals ...interface{})

func Warnf

func Warnf(format string, args ...any)

Types

type LokiWriter

type LokiWriter struct {
	Stderr               io.Writer
	Client               *loki.Client
	LokiApplicationLabel string
}

func (*LokiWriter) Write

func (lw *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