Skip to content

Simple library that gives you the ability to quickly log stack trace

License

Notifications You must be signed in to change notification settings

ErezLevip/stacktrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stacktrace

Stacktrace is a simple library that gives you the ability to quickly log stacktrace.

How-to

as a string:

trace := stacktrace.NewStackTrace(0)
tj, err := trace.ToJson()
if err != nil {
	log.Println(err)
	return
}
fmt.Println(tj, err)

as a reader:

trace := stacktrace.NewStackTrace(0)
b, err := ioutil.ReadAll(trace)
if err != nil {
	log.Println(err)
	return
}
fmt.Println(string(b), err)

About

Simple library that gives you the ability to quickly log stack trace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages