log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: BSD-2-Clause Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct{}

DefaultLogger is the default logger used to log panics that occur during query execution

func (*DefaultLogger) LogPanic

func (l *DefaultLogger) LogPanic(ctx context.Context, value interface{})

LogPanic is used to log recovered panic values that occur during query execution

type Logger

type Logger interface {
	LogPanic(ctx context.Context, value interface{})
}

Logger is the interface used to log panics that occur during query execution. It is settable via graphql.ParseSchema

Jump to

Keyboard shortcuts

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