add logreco

This commit is contained in:
wjqserver 2025-06-04 20:44:23 +08:00
parent 385b6239c8
commit 899d3ff48b
6 changed files with 63 additions and 4 deletions

View file

@ -14,6 +14,7 @@ import (
"strings"
"sync"
"github.com/fenthope/reco"
"github.com/go-json-experiment/json"
"github.com/WJQSERVER-STUDIO/go-utils/copyb"
@ -482,3 +483,8 @@ func (c *Context) GetProtocol() string {
func (c *Context) GetHTTPC() *httpc.Client {
return c.HTTPClient
}
// GetLogger 获取engine的Logger
func (c *Context) GetLogger() *reco.Logger {
return c.engine.LogReco
}