feat: sort output by timestamp

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-06-26 04:33:23 +08:00
parent 31419dc003
commit ebeef65f81
10 changed files with 251 additions and 204 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ var (
}
)
func InitLog() {
func InitLog() {
logger := newLogger("debug")
formatLogger = logger.Sugar()
}
@@ -111,6 +111,6 @@ func Fatalf(template string, args ...interface{}) {
formatLogger.Fatalf(template, args...)
}
func Println(args ...interface{}) {
func Println(args ...interface{}) {
formatLogger.Debug(args...)
}