golog

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushLogs

func FlushLogs()

FlushLogs flushes logs immediately.

func InitLogs

func InitLogs()

InitLogs initializes logs the way we want for kubernetes.

Types

type LogWriter

type LogWriter struct{}

LogWriter serves as a bridge between the standard log package and the appscode/log package.

func (LogWriter) Write

func (writer LogWriter) Write(data []byte) (n int, err error)

Write implements the io.Writer interface.

type Options

type Options struct {
	ToStderr        bool   // The -logtostderr flag.
	AlsoToStderr    bool   // The -alsologtostderr flag.
	StderrThreshold string // The -stderrthreshold flag.
	Verbosity       string // V logging level, the value of the -v flag/
}

func ParseFlags

func ParseFlags(fs *pflag.FlagSet) Options

func (Options) ToFlags

func (opt Options) ToFlags() []string

Jump to

Keyboard shortcuts

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