A lightweight, customizable logging library for Go, designed to provide flexible and simple logging capabilities.
- Simple API for various log levels (Info, Debug, Error).
- Customizable log formats and outputs.
- Lightweight and easy to integrate.
- Supports OTEL (OpenTelemetry) by injecting
spanID
&traceID
into logs. - By default registers as
slog.Default()
but this can be change via option
To install LoggerGo, run:
go get github.com/wasilak/loggergo
Here's a basic example of how to use LoggerGo:
https://github.com/wasilak/loggergo/blob/main/examples/simple/main.go
Contributions are welcome! Please fork the repository, make changes, and submit a pull request.