customlogger

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AsyncLoggerType FIXME: should not be deleted to avoid compiler optimized
	AsyncLoggerType = reflect.TypeOf(asyncLogger{})
)
View Source
var (
	// CronLoggerType FIXME: should not be deleted to avoid compiler optimized
	CronLoggerType = reflect.TypeOf(cronLogger{})
)
View Source
var (
	// GormLoggerType FIXME: should not be deleted to avoid compiler optimized
	GormLoggerType = reflect.TypeOf(gormLogger{})
)
View Source
var (
	HttpLoggerType = reflect.TypeOf(httpLogger{})
)
View Source
var (
	// MQLogger FIXME: should not be deleted to avoid compiler optimized
	MQLogger = reflect.TypeOf(mqLogger{})
)
View Source
var (
	// MetricsLoggerType FIXME: should not be deleted to avoid compiler optimized
	MetricsLoggerType = reflect.TypeOf(metricsLogger{})
)
View Source
var (
	// MongoLoggerType FIXME: should not be deleted to avoid compiler optimized
	MongoLoggerType = reflect.TypeOf(mongoLogger{})
)
View Source
var (
	// RedisLoggerType FIXME: should not be deleted to avoid compiler optimized
	RedisLoggerType = reflect.TypeOf(redisLogger{})
)
View Source
var (
	// RoutineLoggerType FIXME: should not be deleted to avoid compiler optimized
	RoutineLoggerType = reflect.TypeOf(routineLogger{})
)

Functions

func DefaultAsyncLogger

func DefaultAsyncLogger() interface{ Printf(string, ...any) }

func DefaultAsynqAsyncLogger

func DefaultAsynqAsyncLogger() asynq.Logger

func DefaultAsynqCronLogger

func DefaultAsynqCronLogger() asynq.Logger

func DefaultCronLogger

func DefaultCronLogger() interface{ Printf(string, ...any) }

func DefaultHttpLogger

func DefaultHttpLogger() resty.Logger

func DefaultMetricsLogger

func DefaultMetricsLogger() metrics.Logger

func DefaultMongoLogger

func DefaultMongoLogger() (logger *mongoLogger)

func DefaultMySQLLogger

func DefaultMySQLLogger() logger.Interface

func DefaultRoutineLogger

func DefaultRoutineLogger() ants.Logger

func NewLogger

func NewLogger() watermill.LoggerAdapter

NewLogger returns new watermill.LoggerAdapter using passed *zap.Logger as backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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