logging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VerboseFlag     bool
	VeryVerboseFlag bool
	Verbose         *log.Logger
	VeryVerbose     *log.Logger
	Error           *log.Logger
)
View Source
var CurLog = LogOut{
	MesosRequests:    &LogCounter{},
	MesosSuccess:     &LogCounter{},
	MesosNXDomain:    &LogCounter{},
	MesosFailed:      &LogCounter{},
	NonMesosRequests: &LogCounter{},
	NonMesosSuccess:  &LogCounter{},
	NonMesosNXDomain: &LogCounter{},
	NonMesosFailed:   &LogCounter{},
	NonMesosRecursed: &LogCounter{},
}

Functions

func PrintCurLog

func PrintCurLog()

PrintCurLog prints out the current LogOut and then resets

func SetupLogs

func SetupLogs()

SetupLogs provides the following logs Verbose = optional verbosity VeryVerbose = optional verbosity Error = stderr

Types

type Counter added in v0.1.1

type Counter interface {
	Inc()
}

type LogCounter added in v0.1.1

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

func (*LogCounter) Inc added in v0.1.1

func (lc *LogCounter) Inc()

func (*LogCounter) String added in v0.1.1

func (lc *LogCounter) String() string

type LogOut

type LogOut struct {
	MesosRequests    Counter
	MesosSuccess     Counter
	MesosNXDomain    Counter
	MesosFailed      Counter
	NonMesosRequests Counter
	NonMesosSuccess  Counter
	NonMesosNXDomain Counter
	NonMesosFailed   Counter
	NonMesosRecursed Counter
}

Jump to

Keyboard shortcuts

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