logger

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentOrderData added in v1.1.2

func InstrumentOrderData(log *logrus.Entry, order mongodb.Order) *logrus.Entry

func New

func New() *logrus.Entry

func NewFromRequest

func NewFromRequest(request *events.APIGatewayProxyRequest) *logrus.Entry

Types

type LogField

type LogField string
const (
	LogFieldStage                   LogField = "stage"
	LogFieldFunction                LogField = "function"
	LogFieldRequestID               LogField = "request_id"
	LogFieldRequestPath             LogField = "request_path"
	LogFieldRequestMethod           LogField = "request_method"
	LogFieldCorrelationID           LogField = "correlation_id"
	LogFieldOrderID                 LogField = "order_id"
	LogFieldOrderWooID              LogField = "order_woo_id"
	LogFieldOrderNumber             LogField = "order_number"
	LogFieldApplicantPassportNumber LogField = "applicant_passport_number"
)

Jump to

Keyboard shortcuts

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