MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / DoLogs

Method DoLogs

internal/nodeapi/api.go:91–93  ·  view source on GitHub ↗

DoLogs 返回缓冲区内的历史日志行。

()

Source from the content-addressed store, hash-verified

89
90// DoLogs 返回缓冲区内的历史日志行。
91func (a *API) DoLogs() map[string]any {
92return map[string]any{"logs": a.activeManager().Logs()}
93}
94
95// DoAccessLogs 取出并清空 access log 缓冲。若核心不实现 drainer,返回空 entries。
96func (a *API) DoAccessLogs() map[string]any {

Callers 1

HandleMethod · 0.80

Calls 2

activeManagerMethod · 0.95
LogsMethod · 0.65

Tested by

no test coverage detected