log

package
v0.0.0-...-80b3c92 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleOut

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

console输出数据

func Consolelog

func Consolelog() *ConsoleOut

并发单例

func NewConsoleOut

func NewConsoleOut() *ConsoleOut

构造一个logrus.logger对象

func (*ConsoleOut) Error

func (co *ConsoleOut) Error(category string, v ...interface{})

func (*ConsoleOut) Info

func (co *ConsoleOut) Info(category string, v ...interface{})

type Log

type Log interface {
	Info(category string, v ...interface{})
	Error(category string, v ...interface{})
}

定义log接口

Jump to

Keyboard shortcuts

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