gklog

package module
v0.0.0-...-289f725 Latest Latest
Warning

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

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

README

gklog

The goal is similar to klog-gokit but with a different approach. Rather than replacing the klog's public methods (eg Info(), Error, ...), this library leverages klog.SetOutputBySeverity() which passes log data to an io.Writer instance.

Check the example program for usage.

Note that it isn't fully functional as messages can be logged several times (see https://github.com/kubernetes/klog/issues/23 for more details).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(l log.Logger, verbosity int32)

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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