log

package
v0.0.0-...-92d8de8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch(err error)

func Debug

func Debug(ctx context.Context, format string, args ...interface{})

func Error

func Error(ctx context.Context, format string, args ...interface{})

func Fatal

func Fatal(ctx context.Context, format string, args ...interface{})

func Info

func Info(ctx context.Context, format string, args ...interface{})

func SetLogger

func SetLogger(g Logger)

func Warn

func Warn(ctx context.Context, format string, args ...interface{})

Types

type Logger

type Logger interface {
	Info(ctx context.Context, format string, args ...interface{})

	Warn(ctx context.Context, format string, args ...interface{})

	Error(ctx context.Context, format string, args ...interface{})

	Debug(ctx context.Context, format string, args ...interface{})

	Fatal(ctx context.Context, format string, args ...interface{})

	Catch(err error)
}

Jump to

Keyboard shortcuts

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