This package provides a wrapper around the logrus logging library, offering a structured logger with enhanced features for Go applications.
- Context Support: Integrates with Go's
context.Context. - Structured Logging: Add custom fields to log entries for better traceability.
- Multiple Log Levels: Supports
Info,Warn,Error,Fatal, andDebuglevels. - Flexible Formatting: Uses the joonix/log formatter for output.
- Testability: Includes helpers for creating test loggers.
- Create a new logger for production or testing.
- Add contextual fields using the
WithFieldsmethod. - Log messages at various levels with optional formatting.