log

package
v0.0.0-...-89be4ce Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: BSD-2-Clause Imports: 3 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{}

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

func (*DefaultLogger) LogPanic

func (l *DefaultLogger) LogPanic(_ 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