ggloggrpcinterceptor

package module
v0.0.0-...-3547f7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2020 License: MIT Imports: 10 Imported by: 0

README

GGLog - gRPC Interceptor

Using a GGLog, provides logging via a gRPC interceptor.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceGrpcLogger

func ReplaceGrpcLogger(logger gglog.GGLog)

ReplaceGrpcLogger will swap default logger with GGLog logger.

func StreamServerInterceptor

func StreamServerInterceptor(logger gglog.GGLog) grpc.StreamServerInterceptor

StreamServerInterceptor is a stream gRPC interceptor.

func UnaryServerInterceptor

func UnaryServerInterceptor(logger gglog.GGLog) grpc.UnaryServerInterceptor

UnaryServerInterceptor is a unary gRPC interceptor.

Types

type GGLogLoggerV2

type GGLogLoggerV2 struct {
	Logger gglog.GGLog
}

GGLogLoggerV2 is an implementation of the gRPC package's LoggerV2 interface using GGLog.

func (*GGLogLoggerV2) Error

func (logger *GGLogLoggerV2) Error(v ...interface{})

Error will use Sprint.

func (*GGLogLoggerV2) Errorf

func (logger *GGLogLoggerV2) Errorf(format string, v ...interface{})

Errorf will use Sprintf.

func (*GGLogLoggerV2) Errorln

func (logger *GGLogLoggerV2) Errorln(v ...interface{})

Errorln will use Sprintln.

func (*GGLogLoggerV2) Fatal

func (logger *GGLogLoggerV2) Fatal(v ...interface{})

Fatal will use Sprint.

func (*GGLogLoggerV2) Fatalf

func (logger *GGLogLoggerV2) Fatalf(format string, v ...interface{})

Fatalf will use Sprintf.

func (*GGLogLoggerV2) Fatalln

func (logger *GGLogLoggerV2) Fatalln(v ...interface{})

Fatalln will use Sprintln.

func (*GGLogLoggerV2) Info

func (logger *GGLogLoggerV2) Info(v ...interface{})

Info will use Sprint.

func (*GGLogLoggerV2) Infof

func (logger *GGLogLoggerV2) Infof(format string, v ...interface{})

Infof will use Sprintf.

func (*GGLogLoggerV2) Infoln

func (logger *GGLogLoggerV2) Infoln(v ...interface{})

Infoln will use Sprintln.

func (*GGLogLoggerV2) Panic

func (logger *GGLogLoggerV2) Panic(v ...interface{})

Panic will use Sprint.

func (*GGLogLoggerV2) Panicf

func (logger *GGLogLoggerV2) Panicf(format string, v ...interface{})

Panicf will use Sprintf.

func (*GGLogLoggerV2) Panicln

func (logger *GGLogLoggerV2) Panicln(v ...interface{})

Panicln will use Sprintln.

func (*GGLogLoggerV2) Print

func (logger *GGLogLoggerV2) Print(v ...interface{})

Print will use Sprint.

func (*GGLogLoggerV2) Printf

func (logger *GGLogLoggerV2) Printf(format string, v ...interface{})

Printf will use Sprintf.

func (*GGLogLoggerV2) Println

func (logger *GGLogLoggerV2) Println(v ...interface{})

Println will use Sprintln.

func (*GGLogLoggerV2) V

func (logger *GGLogLoggerV2) V(verbosity int) bool

V handles verbosity.

func (*GGLogLoggerV2) Warning

func (logger *GGLogLoggerV2) Warning(v ...interface{})

Warning will use Sprint.

func (*GGLogLoggerV2) Warningf

func (logger *GGLogLoggerV2) Warningf(format string, v ...interface{})

Warningf will use Sprintf.

func (*GGLogLoggerV2) Warningln

func (logger *GGLogLoggerV2) Warningln(v ...interface{})

Warningln will use Sprintln.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL