logging

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLoggingWrapper

func GenerateLoggingWrapper(logger Logger) service.Wrapper

GenerateLoggingWrapper

Called by gkBoot.StartHttpServer, this creates a wrapper that wraps service with a deferred logger. After the service executes, a log will be generated

Types

type LogSkip

type LogSkip struct{}

LogSkip

Implements skipLoggable

Embed into services that should skip logging. These services will not be logged at all

type Logger

type Logger interface {
	Log(elem ...interface{}) error
}

Logger

Defines a logging pattern that is popular in go-kit. Establishing this interface keeps us from having to import go-kit here while also maintaining type safety.

Jump to

Keyboard shortcuts

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