logs

package
v0.0.0-...-60828a5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OrchestratorServiceName = "orchestrator"
)

Variables

View Source
var CollectorAddress = os.Getenv("LOGS_COLLECTOR_ADDRESS")
View Source
var CollectorPublicIP = os.Getenv("LOGS_COLLECTOR_PUBLIC_IP")

Functions

This section is empty.

Types

type SandboxLogger

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

func NewSandboxLogger

func NewSandboxLogger(
	instanceID string,
	envID string,
	teamID string,
	cpuMax int64,
	memoryMax int64,
	internal bool,
) *SandboxLogger

func (*SandboxLogger) CPUUsage

func (l *SandboxLogger) CPUUsage(cpu float64)

func (*SandboxLogger) Debugf

func (l *SandboxLogger) Debugf(
	format string,
	v ...interface{},
)

func (*SandboxLogger) Errorf

func (l *SandboxLogger) Errorf(
	format string,
	v ...interface{},
)

func (*SandboxLogger) GetInternalLogger

func (l *SandboxLogger) GetInternalLogger() *SandboxLogger

func (*SandboxLogger) Healthcheck

func (l *SandboxLogger) Healthcheck(ok bool, alwaysReport bool)

func (*SandboxLogger) Infof

func (l *SandboxLogger) Infof(
	format string,
	v ...interface{},
)

func (*SandboxLogger) MemoryUsage

func (l *SandboxLogger) MemoryUsage(memoryMiB float64)

func (*SandboxLogger) Metrics

func (l *SandboxLogger) Metrics(memTotalMiB, memUsedMiB uint64, cpuCount uint32, cpuUsedPct float32)

func (*SandboxLogger) Warnf

func (l *SandboxLogger) Warnf(
	format string,
	v ...interface{},
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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