Documentation ¶
Overview ¶
Package log provides a global interface to logging functionality
Index ¶
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func StreamInterceptor() grpc.StreamServerInterceptor
- func UnaryInterceptor() grpc.UnaryServerInterceptor
- func Warnf(ctx context.Context, format string, args ...interface{})
- type FileNameHook
- type ID
- type ServerStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamInterceptor ¶
func StreamInterceptor() grpc.StreamServerInterceptor
func UnaryInterceptor ¶
func UnaryInterceptor() grpc.UnaryServerInterceptor
Types ¶
type FileNameHook ¶
type FileNameHook struct { Formatter func(file, function string, line int) string // contains filtered or unexported fields }
func NewFilenameHook ¶
func NewFilenameHook() *FileNameHook
NewFilenameHook creates a new default FileNameHook
func (*FileNameHook) Fire ¶
func (f *FileNameHook) Fire(entry *logrus.Entry) error
Fire executes the hook for every logrus entry
func (*FileNameHook) Levels ¶
func (f *FileNameHook) Levels() []logrus.Level
Levels returns the levels for which the hook is activated. This contains currently only the DebugLevel
type ServerStream ¶
type ServerStream struct { grpc.ServerStream NewContext context.Context }
func NewServerStream ¶
func NewServerStream(stream grpc.ServerStream) *ServerStream
func (*ServerStream) Context ¶
func (w *ServerStream) Context() context.Context
Click to show internal directories.
Click to hide internal directories.