logutils

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureEarlyLogging

func ConfigureEarlyLogging()

ConfigureEarlyLogging installs our logging adapters, and enables early logging to screen if it is enabled by either the FELIX_EARLYLOGSEVERITYSCREEN or FELIX_LOGSEVERITYSCREEN environment variable.

func ConfigureLogging

func ConfigureLogging(configParams *config.Config)

ConfigureLogging uses the resolved configuration to complete the logging configuration. It creates hooks for the relevant logging targets and attaches them to logrus.

func DumpCPUProfile

func DumpCPUProfile(fileName string)

func DumpHeapMemoryProfile

func DumpHeapMemoryProfile(fileName string)

func RegisterProfilingSignalHandlers

func RegisterProfilingSignalHandlers(configParams *config.Config)

Types

type OpRecorder

type OpRecorder interface {
	RecordOperation(name string)
}

type Summarizer

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

func NewSummarizer

func NewSummarizer(loopName string) *Summarizer

func (*Summarizer) DoLog

func (l *Summarizer) DoLog()

func (*Summarizer) EndOfIteration

func (l *Summarizer) EndOfIteration(duration time.Duration)

EndOfIteration should be called at the end of the loop, it will trigger logging of noteworthy logs.

func (*Summarizer) RecordOperation

func (l *Summarizer) RecordOperation(name string)

func (*Summarizer) Reset

func (l *Summarizer) Reset()

Jump to

Keyboard shortcuts

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