log

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithCaller func() Logger

	Debugf func(format string, args ...interface{})
	Infof  func(format string, args ...interface{})
	Printf func(format string, args ...interface{})
	Errorf func(format string, args ...interface{})
	Fatalf func(format string, args ...interface{})

	Debug func(args ...interface{})
	Info  func(args ...interface{})
	Print func(args ...interface{})
	Error func(args ...interface{})
	Fatal func(args ...interface{})

	Debugln func(args ...interface{})
	Infoln  func(args ...interface{})
	Println func(args ...interface{})
	Errorln func(args ...interface{})
	Fatalln func(args ...interface{})
)

Functions

func SetLogger

func SetLogger(logger Logger)

SetLogger rewrites the default logger

Types

type Logger

type Logger interface {
	logrus.FieldLogger
}

Logger represents the log interface

Jump to

Keyboard shortcuts

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