glog

package
v0.0.0-...-87da6f5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

README

glog

This repo contains a package that exposes an API subset of the glog package. All logging state delivered to this package is shunted to the global klog logger.

This package makes it so we can intercept the calls to glog and redirect them to klog and thus produce a consistent log for our processes.

This code was inspired by https://github.com/istio/glog/

Documentation

Overview

Package glog exposes an API subset of the glog(https://github.com/golang/glog) package. All logging state delivered to this package is shunted to the global [klog logger](ttps://github.com/kubernetes/klog).

We depend on some downstream components that use glog for logging. This package makes it so we can intercept the calls to glog and redirect them to klog and thus produce a consistent log for our processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

Error is a shim

func ErrorDepth

func ErrorDepth(depth int, args ...interface{})

ErrorDepth is a shim

func Errorf

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

Errorf is a shim

func Errorln

func Errorln(args ...interface{})

Errorln is a shim

func Exit

func Exit(args ...interface{})

Exit is a shim

func ExitDepth

func ExitDepth(depth int, args ...interface{})

ExitDepth is a shim

func Exitf

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

Exitf is a shim

func Exitln

func Exitln(args ...interface{})

Exitln is a shim

func Fatal

func Fatal(args ...interface{})

Fatal is a shim

func FatalDepth

func FatalDepth(depth int, args ...interface{})

FatalDepth is a shim

func Fatalf

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

Fatalf is a shim

func Fatalln

func Fatalln(args ...interface{})

Fatalln is a shim

func Flush

func Flush()

Flush is a shim

func Info

func Info(args ...interface{})

Info is a shim

func InfoDepth

func InfoDepth(depth int, args ...interface{})

InfoDepth is a shim

func Infof

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

Infof is a shim

func Infoln

func Infoln(args ...interface{})

Infoln is a shim

func Warning

func Warning(args ...interface{})

Warning is a shim

func WarningDepth

func WarningDepth(depth int, args ...interface{})

WarningDepth is a shim

func Warningf

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

Warningf is a shim

func Warningln

func Warningln(args ...interface{})

Warningln is a shim

Types

type Level

type Level int32

Level is a shim

type Verbose

type Verbose bool

Verbose is a shim

func V

func V(level Level) Verbose

V is a shim

func (Verbose) Info

func (v Verbose) Info(args ...interface{})

Info is a shim

func (Verbose) Infof

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

Infof is a shim

func (Verbose) Infoln

func (v Verbose) Infoln(args ...interface{})

Infoln is a shim

Jump to

Keyboard shortcuts

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