utils

package
v0.0.0-...-b1e8dd2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomLogger

type CustomLogger struct {
	Logger *log.Logger
	Tracer trace.Tracer
}

CustomLogger holds the logger and tracer information.

func NewCustomLogger

func NewCustomLogger(serviceName string) *CustomLogger

NewCustomLogger initializes a new CustomLogger with a tracer.

func (*CustomLogger) Error

func (l *CustomLogger) Error(ctx context.Context, msg string, err error)

Error logs error messages and traces the operation, including the error.

func (*CustomLogger) Info

func (l *CustomLogger) Info(ctx context.Context, msg string)

Info logs informational messages and traces the operation.

Jump to

Keyboard shortcuts

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