log

package module
v0.0.0-...-16bab1a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 3 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

log

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug Debug级别日志

func Debugf

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

Debugf Debug级别日志

func Error

func Error(v ...interface{})

Error Error级别日志

func Errorf

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

Errorf Error级别日志

func Fatal

func Fatal(v ...interface{})

Fatal Fatal级别日志

func Fatalf

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

Fatalf Fatal级别日志

func Info

func Info(v ...interface{})

Info Info级别日志

func Infof

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

Infof Info级别日志

func SetLevel

func SetLevel(level string)

SetLevel 设置日志输出级别

func Warning

func Warning(v ...interface{})

Warning Warning级别日志

func Warningf

func Warningf(format string, v ...interface{})

Warningf Warning级别日志

Types

type Logger

type Logger interface {
	Debug(v ...interface{})
	Info(v ...interface{})
	Error(v ...interface{})
	Warning(v ...interface{})
	Fatal(v ...interface{})

	Debugf(format string, v ...interface{})
	Infof(format string, v ...interface{})
	Errorf(format string, v ...interface{})
	Warningf(format string, v ...interface{})
	Fatalf(format string, v ...interface{})

	SetLevel(level string)
}

Logger 日志接口

func GetLogger

func GetLogger() Logger

GetLogger 返回自身

func New

func New() Logger

New 创建logger实例

Jump to

Keyboard shortcuts

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