logrusutil

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PropagateJSON

func PropagateJSON(logger *logrus.Logger, jsonLine []byte, header string, begin time.Time)

PropagateJSON propagates JSONFormatter lines.

PanicLevel and FatalLevel are converted to ErrorLevel.

Types

type JSON

type JSON struct {
	Level string    `json:"level"`
	Msg   string    `json:"msg"`
	Time  time.Time `json:"time"`
}

JSON is the type used in logrus.JSONFormatter

Jump to

Keyboard shortcuts

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