logging

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.0.0

func Debug(message string)

func Debugf added in v1.0.0

func Debugf(message string, extraInfo interface{})

func Error added in v1.0.0

func Error(message string)

func Errorf added in v1.0.0

func Errorf(message string, extraInfo interface{})

func Fatal added in v1.0.0

func Fatal(message string)

func Fatalf added in v1.0.0

func Fatalf(message string, extraInfo interface{})

func Info added in v1.0.0

func Info(message string)

func Infof added in v1.0.0

func Infof(message string, extraInfo interface{})

func Trace added in v1.0.0

func Trace(message string)

func Tracef added in v1.0.0

func Tracef(message string, extraInfo interface{})

func Warn added in v1.0.0

func Warn(message string)

func Warnf added in v1.0.0

func Warnf(message string, extraInfo interface{})

func WithFields added in v1.0.6

func WithFields(fields Fields) *logrus.Entry

WithFields returns a new entry with the given fields. It is a shortcut for `WithFields(Fields(fields))`. See `WithFields` for more details.

Types

type Fields added in v1.0.6

type Fields map[string]interface{}

Fields type, used to pass to `WithFields`.

type LogBody

type LogBody struct {
	Timestamp time.Time     `json:"@timestamp"`
	Severity  string        `json:"severity,omitempty"`
	Fields    LogBodyFields `json:"fields,omitempty"`
	Extra     interface{}   `json:"extra,omitempty"`
	Message   string        `json:"message,omitempty"`
}

type LogBodyFields

type LogBodyFields struct {
	Service string `json:"service,omitempty"`
}

Jump to

Keyboard shortcuts

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