log

package
v0.0.0-...-d374ac5 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

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 Fatal

func Fatal(err error)

func Fatalf

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

func Logf

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

Types

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