logrusutil

package
v0.14.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 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