mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-12 08:00:04 +01:00
chore(*): format
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
3bc2cede39
commit
dc1e825e2b
16 changed files with 233 additions and 24 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue