Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxLogSize defines the maximum log size we should permit. // Zendesk has a file size limit of 20MB. When the last N log files are zipped, // it should fit under 20MB. So here we permit up to 10MB (most files are a few hundred kB). MaxLogSize = 10 * 2 << 20 // MaxLogs defines how many old log files should be kept. MaxLogs = 3 )
Variables ¶
This section is empty.
Functions ¶
func DumpStackTrace ¶
func DumpStackTrace(logsPath string) crash.RecoveryAction
Types ¶
type FileProvider ¶
type FileProvider func() (io.WriteCloser, error)
Click to show internal directories.
Click to hide internal directories.