logger

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LOGSTORE_CAPACITY = 10000

Variables

This section is empty.

Functions

func GetLogsSince

func GetLogsSince(offset int, component, level string) ([]logEntry, int)

GetLogsSince returns new log entries from the given offset.

func InitLogLevel

func InitLogLevel(level string) error

InitLogLevel initializes the global log level based on the provided string. Valid values are "debug", "info", "warn", "error", and "fatal

func NewLogger

func NewLogger(component string) *zerolog.Logger

NewLogger creates a logger writing to stdout and the shared memory log store.

Types

type MemoryLogStore

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

MemoryLogStore is an in-memory log store that implements io.Writer

func (*MemoryLogStore) Write

func (s *MemoryLogStore) Write(p []byte) (int, error)

Write implements the io.Writer interface for MemoryLogStore

Jump to

Keyboard shortcuts

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