chore: init log package (#606)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2021-07-20 21:16:53 +08:00
committed by GitHub
parent 05ec3209f6
commit 2d01f8b854
8 changed files with 31 additions and 66 deletions

View File

@@ -1,7 +1,6 @@
package simple
import (
"log"
"runtime"
"testing"
"time"
@@ -22,15 +21,6 @@ func (m mockMessage) Bytes() []byte {
}
func TestMain(m *testing.M) {
if err := logx.InitLog(
"debug",
"stdout",
"debug",
"stdout",
); err != nil {
log.Fatalf("Can't load log module, error: %v", err)
}
m.Run()
}