Skip to content

Go logger lib (loggers abstraction), mainly for my own projects

License

Notifications You must be signed in to change notification settings

wasilak/loggergo

Repository files navigation

LoggerGo

GitHub tag (with filter) GitHub go.mod Go version (branch & subdirectory of monorepo) Go Reference Maintainability

A lightweight, customizable logging library for Go, designed to provide flexible and simple logging capabilities.

diagram

Features

  • 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

Installation

To install LoggerGo, run:

go get github.com/wasilak/loggergo

Usage

Here's a basic example of how to use LoggerGo:

https://github.com/wasilak/loggergo/blob/main/examples/simple/main.go

Contributing

Contributions are welcome! Please fork the repository, make changes, and submit a pull request.

About

Go logger lib (loggers abstraction), mainly for my own projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages