logs

package
v0.0.0-...-de72672 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OUT    LogFunc
	DEBUG  LogFunc
	DEBUGF LogfFunc
	INFO   LogFunc
	INFOF  LogfFunc
	WARN   LogFunc
	WARNF  LogfFunc
	ERROR  LogFunc
	ERRORF LogfFunc
)

Functions

func CustomLogOutput

func CustomLogOutput(l LogOutput)

CustomLogOutput Custom log middleware

Types

type LogFunc

type LogFunc func(...any)

LogFunc Log output constraint method

type LogOutput

type LogOutput interface {
	OUT(...any)
	DEBUG(...any)
	DEBUGF(string, ...any)
	INFO(...any)
	INFOF(string, ...any)
	WARN(...any)
	WARNF(string, ...any)
	ERROR(...any)
	ERRORF(string, ...any)
}

LogOutput Custom logging middleware constraint interface

type LogfFunc

type LogfFunc func(string, ...any)

LogfFunc Log output constraint method

Jump to

Keyboard shortcuts

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