logger

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Debug

func Debug(message string, fields Fields)

func Debugf added in v0.3.5

func Debugf(message string, replacements ...interface{})

func Enable added in v1.0.1

func Enable()

func Error

func Error(message string, fields Fields)

func Errorf added in v0.2.0

func Errorf(message string, replacements ...interface{})

func Fatal

func Fatal(message string, fields Fields)

func Fatalf added in v1.0.1

func Fatalf(message string, replacements ...interface{})

func GetEntry added in v0.0.37

func GetEntry(fields Fields) *logrus.Entry

func Info

func Info(message string, fields Fields)

func Level added in v0.0.45

func Level() logrus.Level

func Mock added in v1.0.3

func Mock() *test.Hook

Mock creates a new logger and hook for testing purposes. use the hook to assert log messages.

func New added in v0.0.45

func New() *logrus.Logger

func Panic

func Panic(message string, fields Fields)

func Printf added in v0.0.63

func Printf(message string, replacements ...interface{})

func Trace

func Trace(message string, fields Fields)

func Type added in v0.0.45

func Type() string

func Warn

func Warn(message string, fields Fields)

func Warnf added in v1.0.1

func Warnf(message string, replacements ...interface{})

Types

type Fields

type Fields map[string]interface{}

Jump to

Keyboard shortcuts

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