logger

package
v0.0.0-...-e5ef398 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Debug

func Debug(message string, tags ...string)

func Debugf

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

func Error

func Error(message string, err error, tags ...string)

func Errorf

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

func GetOut

func GetOut() io.Writer

func Info

func Info(message string, tags ...string)

func Infof

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

func Panic

func Panic(message string, err error, tags ...string)

func Panicf

func Panicf(format string, err error, args ...interface{})

func Print

func Print(e interface{})

func SetLogLevel

func SetLogLevel(logLevel string)

func Warn

func Warn(message string, tags ...string)

func Warnf

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

Types

type MercuryFormatter

type MercuryFormatter struct {
	ForceColors      bool
	DisableColors    bool
	DisableTimestamp bool
	FullTimestamp    bool
	TimestampFormat  string
	DisableSorting   bool
}

func (*MercuryFormatter) Format

func (f *MercuryFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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