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

Struct xrayLogHandler

internal/xray/manager.go:806–809  ·  view source on GitHub ↗

xrayLogHandler 实现 xrayCommonLog.Handler 接口, 接管 xray-core 全局 log handler 后同时写 stdout 和 manager 日志缓冲区。

Source from the content-addressed store, hash-verified

804// xrayLogHandler 实现 xrayCommonLog.Handler 接口,
805// 接管 xray-core 全局 log handler 后同时写 stdout 和 manager 日志缓冲区。
806type xrayLogHandler struct {
807 stdout xrayCommonLog.Handler
808 ch chan<- string
809}
810
811func (h *xrayLogHandler) Handle(msg xrayCommonLog.Message) {
812 if gm, ok := msg.(*xrayCommonLog.GeneralMessage); ok && gm.Severity == xrayCommonLog.Severity_Debug {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected