logger

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package logger provides a standardized logging interface for the application. It defines a Logger interface that supports logging at different severity levels (Error, Debug, Info) with support for structured logging through key-value pairs.

The logger package is designed to be implementation-agnostic, allowing different logging backends to be used as long as they implement the Logger interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Error logs an error message with optional key-value pairs
	Error(msg string, keysAndValues ...any)
	// Debug logs a debug message with optional key-value pairs
	Debug(msg string, keysAndValues ...any)
	// Info logs an info message with optional key-value pairs
	Info(msg string, keysAndValues ...any)
}

Logger defines the interface for error logging.

Jump to

Keyboard shortcuts

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