docs: 手动实现 simple log 日志库

This commit is contained in:
Shikong 2021-10-06 16:29:09 +08:00
parent 8992e667ae
commit 812c4db396

View File

@ -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,
}