errors

package
v0.0.0-...-b79b01e Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Logger is the system-wide logger

Functions

func Fatal

func Fatal(err error)

Fatal terminates the program and exits with a non-zero code. It should be rarely used.

func FatalMsg

func FatalMsg(err error, friendlyMessage string)

FatalMsg terminates the program and exits with a non-zero code. It should be rarely used.

Types

type GormLogger

type GormLogger struct {
}

func (GormLogger) Error

func (l GormLogger) Error(ctx context.Context, msg string, opts ...interface{})

func (GormLogger) Info

func (l GormLogger) Info(ctx context.Context, msg string, opts ...interface{})

func (GormLogger) LogMode

func (GormLogger) Trace

func (l GormLogger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)

func (GormLogger) Warn

func (l GormLogger) Warn(ctx context.Context, msg string, opts ...interface{})

Jump to

Keyboard shortcuts

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