logger

package
v0.0.0-...-c7d11c1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger

	LongestContainerName int
)

Functions

func ContainerInfoLog

func ContainerInfoLog(name string, msgs ...interface{})

func SetDebug

func SetDebug()

Types

type ContainerLogWriter

type ContainerLogWriter struct {
	*log.Logger
	// contains filtered or unexported fields
}

func NewContainerLogWriter

func NewContainerLogWriter(out io.Writer, containerName string, color string) *ContainerLogWriter

func (*ContainerLogWriter) Write

func (w *ContainerLogWriter) Write(b []byte) (int, error)

type LogLevel

type LogLevel int
const (
	DebugLevel LogLevel = 0
	InfoLevel  LogLevel = 1
	WarnLevel  LogLevel = 2
	ErrorLevel LogLevel = 3
)

func GetLevel

func GetLevel() LogLevel

Jump to

Keyboard shortcuts

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