Version: v0.0.0-...-0b6a67a Latest Latest

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 194



Package log provides functionality similar to standard log package with some extensions:

  • verbosity levels
  • global verbosity setting that can be used by multiple packages
  • ability to disable all output
  • ability to cache recent output in memory



This section is empty.


This section is empty.


func CachedLogOutput

func CachedLogOutput() string

Retrieves cached log output.

func EnableLogCaching

func EnableLogCaching(maxLines, maxMem int)

EnableCaching enables in memory caching of log output. Caches up to maxLines, but no more than maxMem bytes. Cached output can later be queried with CachedOutput.

func Errorf

func Errorf(msg string, args ...interface{})

func Fatal

func Fatal(err error)

func Fatalf

func Fatalf(msg string, args ...interface{})

func Logf

func Logf(v int, msg string, args ...interface{})

func SetName

func SetName(name string)

If the name is set, it will be displayed for all logs.

func SyzFatalf

func SyzFatalf(msg string, args ...interface{})

SyzFatalf-reported errors are parsed by syzkaller as if they were kernel bugs.

func V

func V(level int) bool

V reports whether verbosity at the call site is at least the requested level. See https://pkg.go.dev/github.com/golang/glog#V for details.


type VerboseWriter

type VerboseWriter int

func (VerboseWriter) Write

func (w VerboseWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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