logger

package
v3.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Info logs general informational messages.
	Info(msg string)

	// Warn logs warnings indicating potential issues that may not affect normal operation.
	Warn(msg string)

	// Debug logs detailed debugging information for troubleshooting purposes.
	Debug(msg string)

	// Error logs error messages for serious issues that require attention.
	Error(msg string)

	// ErrorWithCtx logs error messages with additional context, such as request-scoped data.
	ErrorWithCtx(ctx context.Context, msg string)
}

Logger defines a logging interface with methods for various log levels. Each method accepts a message and optional arguments for structured logging.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳