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 ¶
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)
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()
Click to show internal directories.
Click to hide internal directories.