{"modulePath":"github.com/google/slowjam","version":"v1.1.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stacklog\n\nPackage stacklog logs the Go stack to disk in a loop for later analysis\n\n## Functions\n\n```go\nfunc DumpStacks() []byte\n```\nDumpStacks returns a formatted stack trace of goroutines, using a large enough buffer to capture the entire trace.\n\n## Types\n\n```go\ntype Config struct {\n\tPath  string\n\tPoll  time.Duration\n\tQuiet bool\n}\n```\nConfig defines how to configure a stack logger.\n\n```go\ntype Stacklog struct {\n\t// contains filtered or unexported fields\n}\n```\nStacklog controls the stack logger.\n\n```go\nfunc MustStartFromEnv(key string) *Stacklog\n```\nMustStartFromEnv logs stacks to an output file based on the environment.\n\n```go\nfunc Start(c Config) (*Stacklog, error)\n```\nStart begins logging stacks to an output file.\n\n```go\nfunc (s *Stacklog) Stop()\n```\nStop stops logging stacks to disk.\n\n","path":"github.com/google/slowjam/pkg/stacklog","name":"stacklog","synopsis":"Package stacklog logs the Go stack to disk in a loop for later analysis","isRedistributable":true}
