On Thu, Jun 9, 2011 at 10:38 AM, Petar Maymounkov <
pet...@gmail.com> wrote:
> I wanted to implement a programmatic mechanism that saves the stack
> trace (in the event
> of a panic) to a file, rather than displaying it.
>
> The point of this code is that during normal execution, stderr is what
> it is, only in
> the event of a panic, the stderr is redirected to a file so that it
> captures just the
> stack trace.