Skip to content

About

common and simple slog extensions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

common.queueb.org/slog

An extension for Go's standard structured logging package, log/slog.

The package provides additional functionality for building and configuring structured logging while remaining compatible with the standard log/slog API.

It's still in development and used for internal queueb projects.

Install the package with:

go get common.queueb.org/slog

Import the package:

import "common.queueb.org/slog"

The API is built on top of the standard log/slog package and is intended for applications and libraries that need additional logging functionality.

This package is part of the QueueB collection of common Go libraries and provides reusable functionality related to structured logging.

The primary goal is to extend log/slog without introducing a separate logging system or requiring consumers to adopt a non-standard logging API.

Documentation is in development process. Sooner or later it would be available on Go Package Documentation: https://pkg.go.dev/common.queueb.org/slog

Source code: https://github.com/queueb-org/common-slog

$ go test -coverprofile=.coverage ./... && go tool cover -func=.coverage

See the LICENSE file in the repository.

About

common and simple slog extensions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages