log

package
v0.0.0-...-f507469 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorField

func ErrorField(err error) zap.Field

ErrorField calls NamedErrorField with the key "error"

func NamedErrorField

func NamedErrorField(key string, err error) zap.Field

NamedErrorField returns a zap field that logs as the embedded JSON representation of the error. If it's a gRPC error, it converts it to a Status and returns the unpacked information. Otherwise, it returns the original error.

func ProtoField

func ProtoField(key string, m proto.Message) zap.Field

ProtoField returns a zap field that logs as the embedded JSON representation of the Protobuf message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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