errorlogger

package
v1.3.176 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const GroupError = "error"

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorLogger

type ErrorLogger interface {
	LogError(dataFromRecover interface{})
	LogErrorWithRequest(c *gin.Context, errData interface{})
	LogPanicWithRequest(c *gin.Context, errData interface{})
}

func NewRedisErrorLogger

func NewRedisErrorLogger(
	appService *app.App,
	ormService *beeorm.Engine,
	slackService slack.Slack,
	sentryService sentry.ISentry,
	requestBodyKey interface{},
) ErrorLogger

type ErrorMessage

type ErrorMessage struct {
	File    string
	Line    int
	AppName string
	Request []byte
	Message string
	Stack   []byte
}

type RedisErrorLogger

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

func (*RedisErrorLogger) LogError

func (e *RedisErrorLogger) LogError(errData interface{})

func (*RedisErrorLogger) LogErrorWithRequest

func (e *RedisErrorLogger) LogErrorWithRequest(c *gin.Context, errData interface{})

func (*RedisErrorLogger) LogPanicWithRequest added in v1.3.175

func (e *RedisErrorLogger) LogPanicWithRequest(c *gin.Context, errData interface{})

Jump to

Keyboard shortcuts

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