feat: 🎉 postgresql broker first commit of forked prototype from my original code
This commit is contained in:
22
pkg/broker/adapter/logger.go
Normal file
22
pkg/broker/adapter/logger.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user