⭐ Star
this repository if you find it valuable and worth maintaining.
👁 Watch
this repository to get notified about new releases, issues, etc.
The olog
package provides an ergonomic frontend API for OpenTelemetry structured logging.
It is designed to offer a more user-friendly interface while using the OpenTelemetry Logs API as the backend.
It addresses the concerns raised in opentelemetry-specification#4661.
Feel free to create an issue, join the discussions, or propose a pull request.
Please follow the Code of Conduct.
This module follows several key design principles:
- Ergonomic API: Provides simple methods that are easy to use and understand
- Performance First: Includes
Enabled()
checks and optimizations to minimize overhead - Structured Logging: Emphasizes key-value pairs over string formatting
- Compatibility: Uses OpenTelemetry Logs API as the backend for full compatibility
- Composability: Supports logger composition through
With()
- Familiar Patterns: Similar to
slog
design patterns that Go developers already know
olog is licensed under the terms of the MIT license.