Documentation
¶
Index ¶
Constants ¶
View Source
const ( TimestampFieldNameDefault = "t" MessageFieldNameDefault = "msg" )
Variables ¶
This section is empty.
Functions ¶
func ClientLoggerUnaryInterceptor ¶ added in v0.0.9
func ClientLoggerUnaryInterceptor(from, to string) grpc.UnaryClientInterceptor
ClientLoggerUnaryInterceptor returns a new unary client interceptor for log from what to
func InitLog ¶
InitLog initializes zerolog for this service you need provide stdout for your log this function will init default logger with default formatter and default hook
func SetDefaultDevLogger ¶ added in v0.1.0
func SetDefaultProductionLogger ¶ added in v0.1.0
Types ¶
type GRPCServerMWHook ¶ added in v0.1.0
type GRPCServerMWHook struct{}
GRPCServerMWHook will add req-id and handler name to your log
Click to show internal directories.
Click to hide internal directories.