loghook

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcLogging

type GrpcLogging struct {
	// contains filtered or unexported fields
}

GrpcLogging is a hook for Logrus logger, that forwards all the logs to the server so on the server we can see all the logs from all the clients

func NewGrpcLogging

func NewGrpcLogging(ctx context.Context, clientID string, grpcConn *grpc.ClientConn) (*GrpcLogging, error)

func (*GrpcLogging) Fire

func (hook *GrpcLogging) Fire(entry *logrus.Entry) error

func (*GrpcLogging) Levels

func (hook *GrpcLogging) Levels() []logrus.Level

func (*GrpcLogging) SetLevel

func (hook *GrpcLogging) SetLevel(level logrus.Level)

Jump to

Keyboard shortcuts

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