Refine log output

This commit is contained in:
世界
2022-07-04 16:45:32 +08:00
parent ca5b782106
commit 13f41f59d6
5 changed files with 159 additions and 55 deletions

View File

@@ -30,7 +30,9 @@ func (o Options) Equals(other Options) bool {
}
type LogOption struct {
Disabled bool `json:"disabled,omitempty"`
Level string `json:"level,omitempty"`
Output string `json:"output,omitempty"`
Disabled bool `json:"disabled,omitempty"`
Level string `json:"level,omitempty"`
Output string `json:"output,omitempty"`
Timestamp bool `json:"timestamp,omitempty"`
DisableColor bool `json:"-"`
}