logutil
backward-cpp
logutil | backward-cpp | |
---|---|---|
1 | 4 | |
0 | 3,603 | |
- | - | |
1.7 | 4.7 | |
11 months ago | 15 days ago | |
Go | C++ | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
logutil
-
Error stack traces in Go with x/xerror
> 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
backward-cpp
-
Advice on custom assertion libraries
I've used backward-cpp for printing stack traces and I'm very satisfied!
-
How to generate core dump in windows?
if you're just looking for a way to log the stack trace at the time, you can use: https://github.com/bombela/backward-cpp
-
Error stack traces in Go with x/xerror
100% Shameless plug. Stack capture and pretty printer for C++: https://github.com/bombela/backward-cpp
-
Getting around static method limitation of backtrace/dladdr
have you tried backward-cpp?: https://github.com/bombela/backward-cpp
What are some alternatives?
errors - Go error library with error portability over the network
Google Test - GoogleTest - Google Testing and Mocking Framework
json-logs - A tool to pretty-print JSON logs, like those from zap or logrus.
gdb-frontend - ☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
errcode
Google Mock
golangci-lint - Fast linters Runner for Go
hayai - C++ benchmarking framework
xtrace - A simple library to extract traces from golang's xerrors
ig-debugheap - Debug heap useful for tracking down memory errors.
zerolog - Zero Allocation JSON Logger
CppUTest - CppUTest unit testing and mocking framework for C/C++