logutil

Utils for use with zerolog (by mozey)

Logutil Alternatives

Similar projects and alternatives to logutil

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better logutil alternative or higher similarity.

logutil reviews and mentions

Posts with mentions or reviews of logutil. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-23.
  • Error stack traces in Go with x/xerror
    11 projects | news.ycombinator.com | 23 Aug 2021
    > At boundaries between our code and calls out to external packages, make an effort to always wrap the result with xerrors.Errorf. This ensures that we always capture a stack trace at the most proximate location of an error being generated as possible

    I've been doing something similar for a while using `errors.WithStack` from https://github.com/pkg/errors

    The error can then be logged with https://github.com/rs/zerolog like this `log.Error().Stack().Err(err).Msg("")`

    And using a console writer it's possible to get human readable output instead of the standard JSON, see https://github.com/mozey/logutil

Stats

Basic logutil repo stats
1
0
1.7
11 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com