logging

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level added in v0.0.3

type Level uint8
const (
	L_OFF Level = iota
	L_DEFAULT
	L_DETAIL
	L_INFO
	L_DEBUG
)

type Logger

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

func NewLogger

func NewLogger(level Level,
	colorize bool,
	json bool) *Logger

func (*Logger) Check

func (l *Logger) Check(ok bool, msg string, data map[string]interface{})

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) Debugf added in v0.0.6

func (l *Logger) Debugf(f string, args ...interface{})

func (*Logger) Error added in v0.0.4

func (l *Logger) Error(t MessageType, d time.Duration, err error, msg string)

func (*Logger) Finish

func (l *Logger) Finish(t MessageType, ok bool, d time.Duration, msg string, data interface{})

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) Infof added in v0.0.6

func (l *Logger) Infof(f string, args ...interface{})

func (*Logger) Start

func (l *Logger) Start(t MessageType, msg string)

type MessageType

type MessageType uint8
const (
	PLAN MessageType = iota
	SERIAL
	PARALLEL
	ACTION
	CHECK
	INFO
	DEBUG
)

Jump to

Keyboard shortcuts

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