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) Levels ¶
func (hook *GrpcLogging) Levels() []logrus.Level
func (*GrpcLogging) SetLevel ¶
func (hook *GrpcLogging) SetLevel(level logrus.Level)
Click to show internal directories.
Click to hide internal directories.