gLogger is a flexible and extensible logging library for Go applications. It supports various log levels and allows you to subscribe services like Sentry, Logstash, or any other service as a subscriber. When you log an error or other messages, gLogger sends the data to all subscribed services based on the log level.
go get github.com/mjedari/glogger@latest
package main
import (
"github.com/mjedari/glogger"
)
func main() {
// set production or development
glogger.SetConfig(glogger.Config{Production: configs.Config.IsProduction()})
}
Allows you to subscribe external services (e.g., Sentry, Logstash) to receive log data.
Supports different log levels (Debug, Info, Warn, Error, Fatal).
To contribute please have a look at to CONTRIBUTION.md.