syzkaller: github.com/google/syzkaller/pkg/log Index | Files

package log

import "github.com/google/syzkaller/pkg/log"

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

Package Files

log.go

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 41 packages. Updated 2019-08-03. Refresh now. Tools for package owners.