logger

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
}

func (DefaultLogger) Debug

func (d DefaultLogger) Debug(message string, args ...interface{})

func (DefaultLogger) Error

func (d DefaultLogger) Error(message string, args ...interface{})

func (DefaultLogger) Fatal

func (d DefaultLogger) Fatal(message string, args ...interface{})

func (DefaultLogger) Info

func (d DefaultLogger) Info(message string, args ...interface{})

func (DefaultLogger) Warn

func (d DefaultLogger) Warn(message string, args ...interface{})

type LogService

type LogService struct {
	protos.UnimplementedLogServiceServer
	// contains filtered or unexported fields
}

func NewLogService

func NewLogService(logger Logger) *LogService

func (LogService) Debug

func (logSrv LogService) Debug(stream protos.LogService_DebugServer) error

func (LogService) Error

func (logSrv LogService) Error(stream protos.LogService_ErrorServer) error

func (LogService) Fatal

func (logSrv LogService) Fatal(stream protos.LogService_FatalServer) error

func (LogService) Info

func (logSrv LogService) Info(stream protos.LogService_InfoServer) error

func (LogService) Warn

func (logSrv LogService) Warn(stream protos.LogService_WarnServer) error

type Logger

type Logger interface {
	Debug(message string, args ...interface{})
	Info(message string, args ...interface{})
	Warn(message string, args ...interface{})
	Error(message string, args ...interface{})
	Fatal(message string, args ...interface{})
}

Jump to

Keyboard shortcuts

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