Files
pgsql-broker/pkg/broker/adapter/logger.go

23 lines
565 B
Go

package adapter
// Logger defines the interface for logging operations
type Logger interface {
// Debug logs a debug message
Debug(msg string, args ...interface{})
// Info logs an info message
Info(msg string, args ...interface{})
// Warn logs a warning message
Warn(msg string, args ...interface{})
// Error logs an error message
Error(msg string, args ...interface{})
// Fatal logs a fatal message and exits
Fatal(msg string, args ...interface{})
// With returns a new logger with additional context
With(key string, value interface{}) Logger
}