logger

package
v0.0.0-...-787d6dd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedLogger

type ExtendedLogger struct {
	common_logger.AppLogger
}

func NewExtendedAppLogger

func NewExtendedAppLogger(cfg *common_logger.Config) *ExtendedLogger

func (*ExtendedLogger) EventAppeared

func (l *ExtendedLogger) EventAppeared(groupName string, event *esdb.ResolvedEvent, workerID int)

func (*ExtendedLogger) GrpcClientInterceptorLogger

func (l *ExtendedLogger) GrpcClientInterceptorLogger(method string, req, reply interface{}, time time.Duration, metaData map[string][]string, err error)

func (*ExtendedLogger) GrpcMiddlewareAccessLogger

func (l *ExtendedLogger) GrpcMiddlewareAccessLogger(method string, time time.Duration, metaData map[string][]string, err error)

func (*ExtendedLogger) HttpMiddlewareAccessLogger

func (l *ExtendedLogger) HttpMiddlewareAccessLogger(method, uri string, status int, size int64, time time.Duration)

type Logger

type Logger interface {
	common_logger.Logger
	HttpMiddlewareAccessLogger(method string, uri string, status int, size int64, time time.Duration)
	GrpcMiddlewareAccessLogger(method string, time time.Duration, metaData map[string][]string, err error)
	GrpcClientInterceptorLogger(method string, req interface{}, reply interface{}, time time.Duration, metaData map[string][]string, err error)
	EventAppeared(groupName string, event *esdb.ResolvedEvent, workerID int)
}

Logger methods interface

Jump to

Keyboard shortcuts

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