Documentation ¶ Index ¶ Variables func Init(lvl int, timeFormat string) error func ZapGrpcLoggerV2(logger *zap.Logger) grpclog.LoggerV2 Constants ¶ This section is empty. Variables ¶ View Source var ( // Log is global logger Log *zap.Logger ) Functions ¶ func Init ¶ func Init(lvl int, timeFormat string) error Init initializes log by input parameters lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5) timeFormat - custom time format for logger of empty string to use default func ZapGrpcLoggerV2 ¶ func ZapGrpcLoggerV2(logger *zap.Logger) grpclog.LoggerV2 ZapGrpcLoggerV2 wraps a zap logger into a grpc LoggerV2 Types ¶ This section is empty. Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.