field

package
v0.0.0-...-a2093d6 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTime      = "time"
	KeyTimestamp = "timestamp"
	KeyApp       = "app"
	KeyMsg       = "msg"
	KeyLevel     = "level"
	KeyError     = "error"
	KeyFunc      = "func"
	KeyFile      = "file"
	KeySource    = "source"
	KeyHost      = "host"
	KeyTrace     = "trace"

	ValueZero = iota
)

Variables

This section is empty.

Functions

func Fields2LogrusFields

func Fields2LogrusFields(fields Fields) logrus.Fields

Fields2LogrusFields convert Fields to the logrus.Fields

Types

type Fields

type Fields map[string]interface{}

Fields type, used to pass to `WithFields`.

Jump to

Keyboard shortcuts

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