crashlog

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 6 Imported by: 0

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 Guard

func Guard(operation string, filePathFn func() string, errOut *error)

Guard recovers panics from Wails bindings and turns them into errors.

func Install

func Install() string

Install resolves the log file path (next to the executable, or user config dir).

func Path

func Path() string

Path returns the active log file path, calling Install if needed.

func RecoverMain

func RecoverMain()

RecoverMain should be deferred from main() to log fatal panics.

func WriteError

func WriteError(operation, filePath string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL