example

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogHook

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

LogHook is an example of a hook that logs messages on entry and exit and the time interval between they are called.

func New

func New(log *log.Logger) *LogHook

func (*LogHook) OnEntry

func (l *LogHook) OnEntry(ctx context.Context, info types.MethodInfo) context.Context

func (*LogHook) OnExit

func (l *LogHook) OnExit(ctx context.Context, info types.MethodInfo, err error)

Jump to

Keyboard shortcuts

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