log

package
v0.0.0-...-fbaabe3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, v ...interface{})

func Error

func Error(message string, v ...interface{})

func Fatal

func Fatal(message string, v ...interface{})

func Info

func Info(message string, v ...interface{})

func Panic

func Panic(message string, v ...interface{})

func SetFormatter

func SetFormatter(format Format)

func SetOutput

func SetOutput(out io.Writer)

func Trace

func Trace(message string, v ...interface{})

func Warn

func Warn(message string, v ...interface{})

Types

type Entry

type Entry struct {
	*logrus.Entry
}

func With

func With(fields F) *Entry

func (*Entry) Debug

func (entry *Entry) Debug(message string, v ...interface{})

func (*Entry) Error

func (entry *Entry) Error(message string, v ...interface{})

func (*Entry) Fatal

func (entry *Entry) Fatal(message string, v ...interface{})

func (*Entry) Info

func (entry *Entry) Info(message string, v ...interface{})

func (*Entry) Panic

func (entry *Entry) Panic(message string, v ...interface{})

func (*Entry) Trace

func (entry *Entry) Trace(message string, v ...interface{})

func (*Entry) Warn

func (entry *Entry) Warn(message string, v ...interface{})

type F

type F map[string]interface{}

type Format

type Format uint32
const (
	JSON Format = iota
	TEXT        = 1
)

type Level

type Level uint32
const (
	PanicLevel Level = iota
	FatalLevel
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
	TraceLevel
)

func GetLevel

func GetLevel() Level

Jump to

Keyboard shortcuts

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