package
1.91.0
Repository: https://github.com/nufy323/grpc-go.git
Documentation: pkg.go.dev

# Functions

GetMethodLogger returns the methodLogger for the given methodName.
NewLoggerFromConfigString reads the string and build a logger.
NewTempFileSink creates a temp file and returns a Sink that writes to this file.
SetDefaultSink sets the sink where binary logs will be written to.
SetLogger sets the binarg logger.

# Variables

AddrToProto converts an address to a binary logging proto message.
AllLogger is a logger that logs all headers/messages for all RPCs.
MdToMetadataProto converts metadata to a binary logging proto message.

# Structs

Cancel configs the binary log entry to be a Cancel entry.
ClientHalfClose configs the binary log entry to be a ClientHalfClose entry.
ClientHeader configs the binary log entry to be a ClientHeader entry.
ClientMessage configs the binary log entry to be a ClientMessage entry.
MethodLogger is the sub-logger for each method.
ServerHeader configs the binary log entry to be a ServerHeader entry.
ServerMessage configs the binary log entry to be a ServerMessage entry.
ServerTrailer configs the binary log entry to be a ServerTrailer entry.

# Interfaces

LogEntryConfig represents the configuration for binary log entry.
Logger is the global binary logger.
Sink writes log entry into the binary log sink.