syzkaller: Index | Files

package log

import ""

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


Package Files


func CachedLogOutput Uses

func CachedLogOutput() string

Retrieves cached log output.

func EnableLogCaching Uses

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 Fatal Uses

func Fatal(err error)

func Fatalf Uses

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

func Logf Uses

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

type VerboseWriter Uses

type VerboseWriter int

func (VerboseWriter) Write Uses

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

Package log imports 6 packages (graph) and is imported by 46 packages. Updated 2019-08-03. Refresh now. Tools for package owners.