log

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Writer = ginkgo.GinkgoWriter

Functions

func LogBackoff

func LogBackoff() (logf func(format string, args ...interface{}), done func())

LogBackoff gives you a logger with an exponential backoff. If the returned 'logf' func is called too often, the logf calls get ignored until the backoff expires.

The reason we use this backoff mechanism is that we have many "waiting loops" that poll every 0.5 seconds. We don't want to use a higher polling interval since it would slow the test.

The first log line is immediately printed, and the last message is always printed even if the backoff isn't done. That's because the first and last messages are often helpful to understand how things went.

func Logf

func Logf(format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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