logger

package
v0.0.0-...-3051362 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SupportLogger

type SupportLogger struct {
	*logrus.Entry
}

SupportLogger is a type for a log with tags

func NewLogger

func NewLogger(tags map[string]interface{}) *SupportLogger

NewLogger creates a creditsLogger instance

func (*SupportLogger) Debug

func (log *SupportLogger) Debug(message string, tags ...string)

Debug logs a message and the related tags, with a DEBUG level.

func (*SupportLogger) Error

func (log *SupportLogger) Error(message string, err error, tags ...string)

Error logs a message and the related tags, with an ERROR level.

func (*SupportLogger) Info

func (log *SupportLogger) Info(message string, tags ...string)

Info logs a message and the related tags, with an INFO level.

func (*SupportLogger) Panic

func (log *SupportLogger) Panic(message string, err error, tags ...string)

Panic logs a message and the related tags, with an ERROR level. Then panics with the same error

func (*SupportLogger) Print

func (log *SupportLogger) Print(e interface{})

Print logs an interface, the related tags, and a formatted stack trace of the goroutine that calls it.

func (*SupportLogger) Warn

func (log *SupportLogger) Warn(message string, tags ...string)

Warn logs a message and the related tags, with a WARN level.

Jump to

Keyboard shortcuts

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