logrusutil

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 0 Imported by: 0

README

logrusutil 🔨 GoDoc Build Status Go Report Card golangci

Small, easy to use, yet powerful utility packages for https://github.com/sirupsen/logrus.

logctx package GoDoc

Add a log entry to the context using logctx.New(ctx, logEntry). Retrieve the log entry using logctx.From(ctx).

errfield package GoDoc

Wrap an error with fields using errfield.Add(err, "key", value). Use errfield.Formatter to log the fields in a structured way.

Documentation

Overview

Package logrusutil is a set of small, easy to use, yet powerful utility packages for https://github.com/sirupsen/logrus

Directories

Path Synopsis
Package errfield adds possibility to wrap errors with fields and then log them in structured way.
Package errfield adds possibility to wrap errors with fields and then log them in structured way.
Package logctx adds contextual logging to logrus.
Package logctx adds contextual logging to logrus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL