logging

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogFlow = false // true to flow logging settings to child processes.
View Source
var LogToStderr = false // true if logging is being redirected to stderr.
View Source
var Verbose = 0 // >0 if verbose logging is enabled at a particular level.

Functions

func AddGlobalFilter

func AddGlobalFilter(filter Filter)

func Errorf

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

func FilterString

func FilterString(msg string) string

func Flush

func Flush()

func Infof

func Infof(format string, args ...interface{})

func InitLogging

func InitLogging(logToStderr bool, verbose int, logFlow bool)

InitLogging ensures the logging library has been initialized with the given settings.

func V

func V(level glog.Level) glog.Verbose

func Warningf

func Warningf(format string, args ...interface{})

Types

type Filter

type Filter interface {
	Filter(s string) string
}

func CreateFilter

func CreateFilter(secrets []string, replacement string) Filter

Jump to

Keyboard shortcuts

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