Documentation
¶
Overview ¶
logging implements custom logging field types for commonly logged values like host ID or wallet address.
implementation purposely does as little as possible at field creation time, and postpones any transformation to output time by relying on the generic zap types like zap.Stringer, zap.Array, zap.Object
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Re-export relevant go-waku helpers MultiAddrs = logging.MultiAddrs HostID = logging.HostID Time = logging.Time Filters = logging.Filters PagingInfo = logging.PagingInfo HexBytes = logging.HexBytes ENode = logging.ENode TCPAddr = logging.TCPAddr UDPAddr = logging.UDPAddr String = zap.String Bool = zap.Bool Int = zap.Int )
Functions ¶
func QueryParameters ¶
func QueryParameters(req *proto.QueryRequest) zap.Field
func QueryShape ¶
func QueryShape(req *proto.QueryRequest) string
func WalletAddress ¶
WalletAddress creates a field for a wallet address.
func WalletAddressLabelled ¶
func WalletAddressLabelled(label string, address types.WalletAddr) zapcore.Field
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.