Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Go ¶
func Go(operation, filePath string, fn func())
Go runs fn in a goroutine with panic recovery.
func Install ¶
func Install() string
Install resolves the log file path (next to the executable, or user config dir).
func RecoverMain ¶
func RecoverMain()
RecoverMain should be deferred from main() to log fatal panics.
func WriteError ¶
WriteError records a returned error without a stack trace.
func WritePanic ¶
func WritePanic(operation, filePath string, recovered interface{})
WritePanic records a recovered panic (never logs file content).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.