log

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(label string, value Any)

func Fatal

func Fatal(label string, value Any)

func Info

func Info(label string, value Any)

func SetLogger

func SetLogger(ilogger ILogger)

func Warn

func Warn(label string, value Any)

Types

type Any

type Any interface{}

type DefaultLogger

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

func (*DefaultLogger) Error

func (l *DefaultLogger) Error(label string, value Any)

func (*DefaultLogger) Fatal

func (l *DefaultLogger) Fatal(label string, value Any)

func (*DefaultLogger) Info

func (l *DefaultLogger) Info(label string, value Any)

func (*DefaultLogger) PrintLog

func (l *DefaultLogger) PrintLog(logger *log.Logger, label string, value Any)

func (*DefaultLogger) Warn

func (l *DefaultLogger) Warn(label string, value Any)

type ILogger

type ILogger interface {
	Fatal(string, Any)
	Error(string, Any)
	Warn(string, Any)
	Info(string, Any)
}
var Logger ILogger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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