README ¶ grpc A grpc LoggerV2 implementation. Usage import ( "github.com/phuslu/log-contrib/grpc" "github.com/phuslu/log" ) func main() { logger := grpc.New(&log.Logger{ Level: log.InfoLevel, TimeFormat: "15:04:05", Caller: 1, Writer: &log.ConsoleWriter{ ColorOutput: true, QuoteString: false, EndWithMessage: false, }, }) logger.Info("Grpc in action!", "the answer", 42) } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(l *log.Logger) (g *logger) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(l *log.Logger) (g *logger) New wraps the log.Logger to provide a LoggerV2 logger Types ¶ This section is empty. Source Files ¶ View all Source files grpc.go Click to show internal directories. Click to hide internal directories.