mirror of
https://gitee.com/shikong-sk/golang-study
synced 2025-02-22 23:12:15 +08:00
docs: 手动实现 simple log 日志库
This commit is contained in:
parent
8992e667ae
commit
812c4db396
@ -129,7 +129,7 @@ func WithLogFlag(flag LevelFlag) OptionFunc {
|
||||
var defaultOption = &Option{
|
||||
Writer: os.Stdout,
|
||||
TimeFormat: "2006-01-02 15:04:05.99",
|
||||
LogFormat: "%-23s %s %v --- [%20s] : %s\n",
|
||||
LogFormat: "%-22s %s %v --- [%20s] : %s\n",
|
||||
LevelFlag: FlagInfo | FlagWarn | FlagError | FlagDebug,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user