Documentation ¶
Overview ¶
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
Index ¶
- func CachedLogOutput() string
- func EnableLogCaching(maxLines, maxMem int)
- func Error(err error)
- func Errorf(msg string, args ...interface{})
- func Fatal(err error)
- func Fatalf(msg string, args ...interface{})
- func Log(v int, msg string)
- func Logf(v int, msg string, args ...interface{})
- func SetName(name string)
- func SyzFatal(err error)
- func SyzFatalf(msg string, args ...interface{})
- func V(level int) bool
- type VerboseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableLogCaching ¶
func EnableLogCaching(maxLines, maxMem int)
EnableLogCaching 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 SyzFatalf ¶
func SyzFatalf(msg string, args ...interface{})
SyzFatalf-reported errors are parsed by syzkaller as if they were kernel bugs.
func V ¶
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.
Types ¶
type VerboseWriter ¶
type VerboseWriter int
Click to show internal directories.
Click to hide internal directories.