MCPcopy
hub / github.com/aceld/zinx / Stack

Method Stack

zlog/logger_core.go:336–344  ·  view source on GitHub ↗
(v ...interface{})

Source from the content-addressed store, hash-verified

334}
335
336func (log *ZinxLoggerCore) Stack(v ...interface{}) {
337 s := fmt.Sprint(v...)
338 s += "\n"
339 buf := make([]byte, LOG_MAX_BUF)
340 n := runtime.Stack(buf, true) //得到当前堆栈信息
341 s += string(buf[:n])
342 s += "\n"
343 _ = log.OutPut(LogError, s)
344}
345
346// Flags gets the current log bitmap flags
347// (获取当前日志bitmap标记)

Callers 1

StackFunction · 0.80

Calls 1

OutPutMethod · 0.95

Tested by

no test coverage detected