log

package
v0.0.0-...-3098c48 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package log provides logging for the kube-volume-freezer project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() *logrus.Logger

Instance returns the default logger.

func SetupAndHarmonize

func SetupAndHarmonize(verbose bool)

SetupAndHarmonize configures logging including third-party loggers.

Types

type DebugLogger

type DebugLogger struct {
	// Optionally prepend a prefix on each print.
	Prefix string
}

DebugLogger implements the go-restful logger printing to debug using logrus.

func (*DebugLogger) Print

func (l *DebugLogger) Print(v ...interface{})

Print calls logrus.Debug().

func (*DebugLogger) Printf

func (l *DebugLogger) Printf(format string, v ...interface{})

Printf calls logrus.Debuf().

Jump to

Keyboard shortcuts

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