log

package
v0.0.0-...-489c00f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 9 Imported by: ? modules, 0 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

使用级别,参照一下 - Fatal:网站挂了,或者极度不正常 - Error:跟遇到的用户说对不起,可能有bug - Warn:记录一下,某事又发生了 - Info:提示一切正常 - debug:没问题,就看看堆栈

func Fatalf

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

func GinLogger

func GinLogger(c *gin.Context)

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init(logty int, serName string)

func SetDebug

func SetDebug(d bool)

debug: 使用text格式, Level是Debug, 打印所有级别 not debug: 使用json格式, level是Info, 不打印Debug级别

func Warn

func Warn(args ...interface{})

func Warnf

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

func WithField

func WithField(key string, value interface{}) *logrus.Entry

func WithFields

func WithFields(fs logrus.Fields) *logrus.Entry

Types

This section is empty.

Jump to

Keyboard shortcuts

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