swift-server / swift-backtrace

💥 Backtraces for Swift on Linux and Windows
Apache License 2.0
296 stars 34 forks source link

feat: add Backtrace.print() function #15

Closed ianpartridge closed 5 years ago

ianpartridge commented 5 years ago

Fixes #14.

ianpartridge commented 5 years ago

cc: @ktoso.

Btw, I do consider all the current API to be totally inadequate. I just want to ship functionality people need ASAP then we can think carefully about what API we want long-term.

ianpartridge commented 5 years ago

e.g. at a bare minimum we probably also want public static func print<Target>(to output: inout Target) where Target : TextOutputStream but that means a bit more work wiring the libbacktrace output through to a TextOutputStream.

ianpartridge commented 5 years ago

Released https://github.com/ianpartridge/swift-backtrace/releases/tag/1.1.0 with this.