Documentation
¶
Overview ¶
Package interfaces defines the interfaces for the logging package. It provides abstractions for logging functionality that can be implemented by different logging backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Debug logs a debug-level message with context information
Debug(ctx context.Context, msg string, fields ...zap.Field)
// Info logs an info-level message with context information
Info(ctx context.Context, msg string, fields ...zap.Field)
// Warn logs a warning-level message with context information
Warn(ctx context.Context, msg string, fields ...zap.Field)
// Error logs an error-level message with context information
Error(ctx context.Context, msg string, fields ...zap.Field)
// Fatal logs a fatal-level message with context information
Fatal(ctx context.Context, msg string, fields ...zap.Field)
// Sync flushes any buffered log entries
Sync() error
}
Logger defines the interface for context-aware logging
Click to show internal directories.
Click to hide internal directories.