log

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YTaskLog *logrus.Logger

Functions

This section is empty.

Types

type LineNumHook

type LineNumHook struct {
}

记录行号的hook

func (LineNumHook) Fire

func (hook LineNumHook) Fire(entry *logrus.Entry) error

func (LineNumHook) Levels

func (hook LineNumHook) Levels() []logrus.Level

type LoggerInterface

type LoggerInterface interface {
	Debug(string)
	DebugWithField(string, string, interface{})
	Info(string)
	InfoWithField(string, string, interface{})
	Warn(string)
	WarnWithField(string, string, interface{})
	Error(string)
	ErrorWithField(string, string, interface{})
	Fatal(string)
	FatalWithField(string, string, interface{})
	Panic(string)
	PanicWithField(string, string, interface{})
	SetLevel(string)
	Clone() LoggerInterface
}

type YTaskHook

type YTaskHook struct {
}

func (YTaskHook) Fire

func (hook YTaskHook) Fire(entry *logrus.Entry) error

func (YTaskHook) Levels

func (hook YTaskHook) Levels() []logrus.Level

type YTaskLogger

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

func NewYTaskLogger

func NewYTaskLogger(logger *logrus.Logger) *YTaskLogger

func (*YTaskLogger) Clone

func (yl *YTaskLogger) Clone() LoggerInterface

func (*YTaskLogger) Debug

func (yl *YTaskLogger) Debug(msg string)

func (*YTaskLogger) DebugWithField

func (yl *YTaskLogger) DebugWithField(msg string, key string, val interface{})

func (*YTaskLogger) Error

func (yl *YTaskLogger) Error(msg string)

func (*YTaskLogger) ErrorWithField

func (yl *YTaskLogger) ErrorWithField(msg string, key string, val interface{})

func (*YTaskLogger) Fatal

func (yl *YTaskLogger) Fatal(msg string)

func (*YTaskLogger) FatalWithField

func (yl *YTaskLogger) FatalWithField(msg string, key string, val interface{})

func (*YTaskLogger) Info

func (yl *YTaskLogger) Info(msg string)

func (*YTaskLogger) InfoWithField

func (yl *YTaskLogger) InfoWithField(msg string, key string, val interface{})

func (*YTaskLogger) Panic

func (yl *YTaskLogger) Panic(msg string)

func (*YTaskLogger) PanicWithField

func (yl *YTaskLogger) PanicWithField(msg string, key string, val interface{})

func (*YTaskLogger) SetLevel

func (yl *YTaskLogger) SetLevel(level string)

func (*YTaskLogger) Warn

func (yl *YTaskLogger) Warn(msg string)

func (*YTaskLogger) WarnWithField

func (yl *YTaskLogger) WarnWithField(msg string, key string, val interface{})

Jump to

Keyboard shortcuts

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