wip: log
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package debugframes
|
||||
|
||||
import "runtime"
|
||||
import (
|
||||
"gitea.suyono.dev/suyono/wingmate/log"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
type Trace struct {
|
||||
Frames []runtime.Frame
|
||||
@@ -14,6 +17,17 @@ func (t *Trace) Trace() []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *Trace) AppendFields(h log.FieldsHandler) log.FieldsHandler {
|
||||
//var slice []string
|
||||
//
|
||||
//for _, f := range t.Frames {
|
||||
// slice = append(slice, fmt.Sprintf("", f.))
|
||||
//}
|
||||
//
|
||||
//
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetTraces() error {
|
||||
trace := new(Trace)
|
||||
pc := make([]uintptr, 16)
|
||||
|
||||
Reference in New Issue
Block a user