logs

package
v0.0.0-...-18c487f Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLevel

func SetLevel(def int)

Types

type Log

type Log struct {
}

空log, 防止以后需要包其他第三方log包

var Logger *Log

func NewLog

func NewLog() *Log

log的实例化方法 返回实例化log指针

func (*Log) Debug

func (l *Log) Debug(message string)

func (*Log) Error

func (l *Log) Error(message string)

func (*Log) Info

func (l *Log) Info(message string)

func (*Log) Panic

func (l *Log) Panic(message string)

func (*Log) Println

func (l *Log) Println(level string, message string)

func (*Log) SysErr

func (l *Log) SysErr(err error)

func (*Log) Warn

func (l *Log) Warn(message string)

Jump to

Keyboard shortcuts

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