logger

package
v0.0.0-...-440ad23 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Verbose bool
	JsonLog bool
	App     = context.Background()
)

Functions

func Consumer

func Consumer(ctx context.Context, c model.IConsumer, message string, args ...any)

func Debug

func Debug(ctx context.Context, format string, v ...any)

func Error

func Error(ctx context.Context, format string, v ...any)

func Fatal

func Fatal(ctx context.Context, format string, v ...any)

func Info

func Info(ctx context.Context, format string, v ...any)

func Log

func Log(ctx context.Context, level Level, format string, v ...any)

func Produce

func Produce(ctx context.Context, topic string, message string, args ...any)

func Warning

func Warning(ctx context.Context, format string, v ...any)

Types

type GetRequestIdFromContextGetterFn

type GetRequestIdFromContextGetterFn func(ctx context.Context) string
var GetRequestIdFromContextFn *GetRequestIdFromContextGetterFn

type Level

type Level string
const (
	LevelDebug   Level = "D"
	LevelInfo    Level = "I"
	LevelWarning Level = "W"
	LevelError   Level = "E"
	LevelFatal   Level = "F"
)

Jump to

Keyboard shortcuts

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