# Functions
GetLogger gets the binary logger.
GetMethodLogger returns the MethodLogger for the given methodName.
NewBufferedSink creates a binary log sink with the given WriteCloser.
NewLoggerFromConfig builds a logger with the given LoggerConfig.
NewLoggerFromConfigString reads the string and build a logger.
NewTruncatingMethodLogger returns a new truncating method logger.
SetLogger sets the binary logger.
# Variables
AddrToProto converts an address to a binary logging proto message.
AllLogger is a logger that logs all headers/messages for all RPCs.
TODO(blog): change this default (file in /tmp).
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.
LoggerConfig contains the config for loggers to create method loggers.
MethodLoggerConfig contains the setting for logging behavior of a method logger.
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.
TruncatingMethodLogger is a method logger that truncates headers and messages based on configured fields.
# Interfaces
LogEntryConfig represents the configuration for binary log entry.
Logger specifies MethodLoggers for method names with a Log call that takes a context.
MethodLogger is the sub-logger for each method.
Sink writes log entry into the binary log sink.