logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostKey              string = "host"
	NodeIDKey            string = "node_id"
	VolumeIDKey          string = "volume_id"
	VolumeNameKey        string = "volume_name"
	RequestKey           string = "request"
	ResponseKey          string = "response"
	ServiceURLKey        string = "service_url"
	ServicePayloadKey    string = "service_payload"
	CorrelationIDKey     string = "correlation_id"
	MethodKey            string = "method"
	FilesystemTypeKey    string = "fs_type"
	MountOptionsKey      string = "mount_options"
	MountSourceKey       string = "source"
	MountTargetKey       string = "target"
	CommandKey           string = "cmd"
	CommandArgsKey       string = "cmd_args"
	VolumeSourceKey      string = "source_id"
	SnapshotIDKey        string = "snapshot_id"
	ListStartingTokenKey string = "starting_token"
	ListMaxEntriesKey    string = "max_entries"
	ZoneKey              string = "zone"

	CtxCorrelationIDKey contextKey = "ctx_correlation_id"
	CtxCalledMethodKey  contextKey = "ctx_called_method"
)

Variables

This section is empty.

Functions

func ContextCorrelationID

func ContextCorrelationID(ctx context.Context) string

func New

func New(logLevel string) *logrus.Logger

func NewMiddleware

func NewMiddleware(log *logrus.Entry) grpc.UnaryServerInterceptor

func WithRequest

func WithRequest(e *logrus.Entry, r fmt.Stringer) *logrus.Entry

func WithResponse

func WithResponse(e *logrus.Entry, r fmt.Stringer) *logrus.Entry

func WithServerContext

func WithServerContext(ctx context.Context, e *logrus.Entry) *logrus.Entry

func WithServiceRequest

func WithServiceRequest(e *logrus.Entry, r requestable) *logrus.Entry

Types

This section is empty.

Jump to

Keyboard shortcuts

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