logging

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceLogger

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

For now, we keep logs in memory but this is not suitable for production

func NewInstanceLogger

func NewInstanceLogger(instanceId string) *InstanceLogger

func (*InstanceLogger) GetLog

func (m *InstanceLogger) GetLog() []*api.LogEntry

func (*InstanceLogger) Start

func (m *InstanceLogger) Start(path string) error

func (*InstanceLogger) Stop

func (m *InstanceLogger) Stop()

func (*InstanceLogger) Subscribe

func (m *InstanceLogger) Subscribe() ([]*api.LogEntry, *LogSubscriber)

type LogSubscriber

type LogSubscriber = pubsub.Subscriber[*api.LogEntry]

Jump to

Keyboard shortcuts

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