grecover

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package grecover catch exec panic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchStack

func CatchStack() []byte

CatchStack 捕获指定stack信息,一般在处理panic/recover中处理 返回完整的堆栈信息和函数调用信息

func CheckPanic

func CheckPanic()

CheckPanic check panic when exit

Types

type Logger added in v1.10.2

type Logger interface {
	Println(msg ...interface{})
}

Logger log interface

var (
	LogEntry   Logger = log.New(os.Stderr, "", log.LstdFlags)
	TracePanic        = false // trace panic stack
)

LogEntry log entry.

Jump to

Keyboard shortcuts

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