logging

package
v0.0.0-...-ce79905 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUERY_KEY = "level"
)

Variables

This section is empty.

Functions

func CleanupLogFiles

func CleanupLogFiles(logFile string, maxFilesToKeep int)

func SetupLogger

func SetupLogger(agentConfig *config.AgentConfig)

initialize the logger with a specified log format

Types

type AgentEnvoyLogFormatter

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

Generic Log Formatter to match Envoy default log Format

func NewAgentLogFormatter

func NewAgentLogFormatter() *AgentEnvoyLogFormatter

func (*AgentEnvoyLogFormatter) Format

func (f *AgentEnvoyLogFormatter) Format(entry *log.Entry) ([]byte, error)

type AgentLogWriter

type AgentLogWriter interface {
	io.Writer
	GetOutputFileDescriptors() []uintptr
}

type AgentLogWriterImpl

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

func (*AgentLogWriterImpl) GetOutputFileDescriptors

func (a *AgentLogWriterImpl) GetOutputFileDescriptors() []uintptr

func (*AgentLogWriterImpl) Write

func (a *AgentLogWriterImpl) Write(p []byte) (int, error)

type EnvoyLoggingHandler

type EnvoyLoggingHandler struct {
	AgentConfig config.AgentConfig
	Limiter     *rate.Limiter
	// contains filtered or unexported fields
}

func (*EnvoyLoggingHandler) LoggingHandler

func (envoyHandler *EnvoyLoggingHandler) LoggingHandler(response http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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