package
0.5.10
Repository: https://github.com/ubuntu/zsys.git
Documentation: pkg.go.dev

# Functions

AddLogger initializes a stream by checking log level, send headers back to client and return a context for further logging.
ClientRequestLogInterceptor ensure that the stream get a valid requestID from the service in headers and consumes logs by printing them.
NewClientCtx creates a requester ID and attach it to returned context.
ServerIdleTimeoutInterceptor adds a call to reset the server stream timeout if available.

# Variables

ErrLogMsg allows detecting when a recv message was only logs to client, consumed by the interceptor.

# Interfaces

StreamLogger is an interface to associate a writer (for message passing) to a stream.