log

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log wraps all logging for pachyderm. This allows us to use other logging implementations in the future easily.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(args ...interface{})

Print prints a log message with fmt.Print semantics using the pachyderm Logger.

func Printf

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

Printf prints a log message with fmt.Printf semantics using the pachyderm Logger.

func SetLogger

func SetLogger(l Logger)

SetLogger sets the logger used by pachyderm.

func Writer

func Writer() io.Writer

Writer returns an io.Writer for logging.

Types

type Logger

type Logger interface {
	io.Writer
	Print(args ...interface{})
	Printf(format string, args ...interface{})
}

Logger is a super simple logger.

var (
	// DefaultLogger is the default logger used.
	DefaultLogger Logger = newLogger(log.New(os.Stderr, "", log.LstdFlags|log.Lshortfile))
)

Jump to

Keyboard shortcuts

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