log

package
v0.0.0-...-58895e1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug 调试

func Debugf

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

Debugf 调试

func Error

func Error(v ...interface{})

Error 错误

func Errorf

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

Errorf 错误

func Fatal

func Fatal(v ...interface{})

Fatal 致命错误

func Fatalf

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

Fatalf 致命错误

func Info

func Info(v ...interface{})

Info 信息

func Infof

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

Infof 信息

func SetLog

func SetLog(conf *LogConfig) error

SetLog 配置log

func Trace

func Trace(v ...interface{})

Trace 跟踪

func Tracef

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

Tracef 跟踪

Types

type Adapter

type Adapter struct {
	Config string
}

type Level

type Level int
const (
	LevelTrace Level = iota
	LevelDebug
	LevelInfo
	LevelError
	LevelFatal
)

type LogConfig

type LogConfig struct {
	Level    Level
	Adapters map[string]Adapter
}

Jump to

Keyboard shortcuts

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