mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
add logreco
This commit is contained in:
parent
385b6239c8
commit
899d3ff48b
6 changed files with 63 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue