mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 00:41:10 +08:00
ctx add logreco method
This commit is contained in:
parent
899d3ff48b
commit
b8a1c5523a
2 changed files with 27 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ package touka
|
|||
import (
|
||||
"log"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/fenthope/reco"
|
||||
)
|
||||
|
|
@ -11,6 +12,7 @@ import (
|
|||
var defaultLogRecoConfig = reco.Config{
|
||||
Level: reco.LevelInfo,
|
||||
Mode: reco.ModeText,
|
||||
TimeFormat: time.RFC3339,
|
||||
Output: os.Stdout,
|
||||
Async: true,
|
||||
DefaultFields: nil,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue