Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Adding Stringer implementation for Stacktrace & StacktraceFrame #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aheuermann
Copy link
Contributor

Added String() methods to Stacktrace and StacktraceFrame. Useful if you want to log the same stacktrace to something like syslog.

Here is an example:

github.com/getsentry/raven-go/stacktrace_test.go:85
    trace:  return NewStacktrace(0, 2, []string{thisPackage})
github.com/getsentry/raven-go/stacktrace_test.go:150
    TestStacktraceString:   st := trace()
testing/testing.go:456
    tRunner:    test.F(t)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant