Documentation
¶
Overview ¶
Package stacklog logs the Go stack to disk in a loop for later analysis
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpStacks ¶
func DumpStacks() []byte
DumpStacks returns a formatted stack trace of goroutines, using a large enough buffer to capture the entire trace.
Types ¶
type Stacklog ¶
type Stacklog struct {
// contains filtered or unexported fields
}
Stacklog controls the stack logger.
func MustStartFromEnv ¶
MustStartFromEnv logs stacks to an output file based on the environment.
Click to show internal directories.
Click to hide internal directories.