logger

package
v0.0.0-...-3f8f567 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func DebugData

func DebugData(message string, data map[string]interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func ErrorData

func ErrorData(message string, data map[string]interface{})

func Errorf

func Errorf(format string, v ...interface{})

func GetLogger

func GetLogger(name string) (*logrus.Logger, error)

func Info

func Info(v ...interface{})

func InfoData

func InfoData(message string, data map[string]interface{})

func Infof

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

func Register

func Register() error

func Warn

func Warn(v ...interface{})

func WarnData

func WarnData(message string, data map[string]interface{})

func Warnf

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

Types

type ConsoleFormatter

type ConsoleFormatter struct {
}

func (*ConsoleFormatter) Format

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

type FileFormatter

type FileFormatter struct {
}

func (*FileFormatter) Format

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

Jump to

Keyboard shortcuts

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