feat: logx with color (#1872)

* feat: logx with color

* chore: update logs

* fix test error

* chore: change colors of http codes

* chore: add comments

* chore: use faith/color instead of ascii code color

* chore: update colors

* chore: update colors

* chore: fix duplicated slowcall text

* chore: remove slowcall colors
This commit is contained in:
Kevin Wan
2022-05-07 23:22:39 +08:00
committed by GitHub
parent 5383e29ce6
commit 69c2bad410
13 changed files with 261 additions and 26 deletions

View File

@@ -223,13 +223,13 @@ func SetUp(c LogConf) error {
}
switch c.Mode {
case consoleMode:
setupWithConsole()
return nil
case fileMode:
return setupWithFiles(c)
case volumeMode:
return setupWithVolume(c)
default:
return setupWithFiles(c)
setupWithConsole()
return nil
}
}