logger

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(callerSkip int) *Logger

func (*Logger) Debug

func (l *Logger) Debug(v ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, v ...interface{})

func (*Logger) Error

func (l *Logger) Error(v ...interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(format string, v ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(v ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, v ...interface{})

func (*Logger) Info

func (l *Logger) Info(v ...interface{})

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...interface{})

func (*Logger) Panic

func (l *Logger) Panic(v ...interface{})

func (*Logger) Panicf

func (l *Logger) Panicf(format string, v ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(v ...interface{})

func (*Logger) Warnf

func (l *Logger) Warnf(format string, v ...interface{})

type ServerLoggerPlugin

type ServerLoggerPlugin struct{}

func (ServerLoggerPlugin) HandleConnAccept

func (p ServerLoggerPlugin) HandleConnAccept(conn net.Conn) (net.Conn, bool)

func (ServerLoggerPlugin) HandleConnClose

func (p ServerLoggerPlugin) HandleConnClose(conn net.Conn) (net.Conn, bool)

func (ServerLoggerPlugin) PostWriteResponse

func (p ServerLoggerPlugin) PostWriteResponse(ctx context.Context, req *protocol.Message, res *protocol.Message, err error) error

func (ServerLoggerPlugin) PreHandleRequest

func (p ServerLoggerPlugin) PreHandleRequest(ctx context.Context, r *protocol.Message) error

func (ServerLoggerPlugin) Register

func (p ServerLoggerPlugin) Register(name string, rcvr interface{}, metadata string) error

func (ServerLoggerPlugin) RegisterFunction

func (p ServerLoggerPlugin) RegisterFunction(serviceName, fname string, fn interface{}, metadata string) error

func (ServerLoggerPlugin) Unregister

func (p ServerLoggerPlugin) Unregister(name string) error

Jump to

Keyboard shortcuts

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