All Projects → go-stack → Stack

go-stack / Stack

Licence: mit
Package stack implements utilities to capture, manipulate, and format call stacks.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Stack

Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (-50.7%)
Mutual labels:  stacktrace
py better exchook
nice Python exception hook replacement
Stars: ✭ 35 (-87.76%)
Mutual labels:  stacktrace
madbomber
Backtrace-on-throw C++ exception logger
Stars: ✭ 17 (-94.06%)
Mutual labels:  stacktrace
Fracker
PHP function tracker
Stars: ✭ 234 (-18.18%)
Mutual labels:  stacktrace
gostackparse
Package gostackparse parses goroutines stack traces as produced by panic() or debug.Stack() at ~300 MiB/s.
Stars: ✭ 88 (-69.23%)
Mutual labels:  stacktrace
asmCrashReport
🐞 Installs signal handlers to capture stack traces for MinGW 32 and macOS builds.
Stars: ✭ 39 (-86.36%)
Mutual labels:  stacktrace
Debugengine
Delphi debug framework
Stars: ✭ 133 (-53.5%)
Mutual labels:  stacktrace
tracehash
Compress long exception traces down to short signatures
Stars: ✭ 20 (-93.01%)
Mutual labels:  stacktrace
xUnwind
🔥 xUnwind is a collection of Android native stack unwinding solutions.
Stars: ✭ 127 (-55.59%)
Mutual labels:  stacktrace
stackwalkerc
Windows single header stack walker in C (DbgHelp.DLL)
Stars: ✭ 26 (-90.91%)
Mutual labels:  stacktrace
Stacktrace
C++ library for storing and printing backtraces.
Stars: ✭ 250 (-12.59%)
Mutual labels:  stacktrace
stacktrace
Atom package to navigate stacktraces.
Stars: ✭ 35 (-87.76%)
Mutual labels:  stacktrace
rebucket
ReBucket – A Method for Clustering Duplicate Crash Reports based on Call Stack Similarity
Stars: ✭ 21 (-92.66%)
Mutual labels:  stacktrace
Blocked At
Detects node eventloop block and reports where it started
Stars: ✭ 219 (-23.43%)
Mutual labels:  stacktrace
php-stacktrace
Read stacktrace from outside PHP process
Stars: ✭ 40 (-86.01%)
Mutual labels:  stacktrace
Clarify
Remove nodecore related stack trace noise
Stars: ✭ 140 (-51.05%)
Mutual labels:  stacktrace
ngx-flamegraph
Flame graph for stack trace visualization written in Angular
Stars: ✭ 54 (-81.12%)
Mutual labels:  stacktrace
Easyloggingpp
Single header C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
Stars: ✭ 3,032 (+960.14%)
Mutual labels:  stacktrace
go-errors
Flexible, general-purpose error handling for Go.
Stars: ✭ 17 (-94.06%)
Mutual labels:  stacktrace
stacktrace compat
get_stacktrace() compatibility in Erlang/OTP 21+
Stars: ✭ 18 (-93.71%)
Mutual labels:  stacktrace

GoDoc Go Report Card TravisCI Coverage Status

stack

Package stack implements utilities to capture, manipulate, and format call stacks. It provides a simpler API than package runtime.

The implementation takes care of the minutia and special cases of interpreting the program counter (pc) values returned by runtime.Callers.

Versioning

Package stack publishes releases via semver compatible Git tags prefixed with a single 'v'. The master branch always contains the latest release. The develop branch contains unreleased commits.

Formatting

Package stack's types implement fmt.Formatter, which provides a simple and flexible way to declaratively configure formatting when used with logging or error tracking packages.

func DoTheThing() {
    c := stack.Caller(0)
    log.Print(c)          // "source.go:10"
    log.Printf("%+v", c)  // "pkg/path/source.go:10"
    log.Printf("%n", c)   // "DoTheThing"

    s := stack.Trace().TrimRuntime()
    log.Print(s)          // "[source.go:15 caller.go:42 main.go:14]"
}

See the docs for all of the supported formatting options.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].