chore(*): format

Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
storyicon 2021-07-22 00:58:28 +08:00
parent 3bc2cede39
commit dc1e825e2b
No known key found for this signature in database
GPG key ID: 245915D985F966CF
16 changed files with 233 additions and 24 deletions

View file

@ -58,6 +58,7 @@ type Config struct {
Level Level
}
// Level is the structure of log level
type Level struct {
Name string
Color color.Attribute
@ -65,6 +66,7 @@ type Level struct {
Writer io.Writer
}
// defines a set of log level
var (
LevelDebug = Level{Name: "debug", Color: color.FgWhite, Index: 0, Writer: os.Stdout}
LevelInfo = Level{Name: "info", Color: color.FgWhite, Index: 1, Writer: os.Stdout}