This commit is contained in:
ehlxr 2019-11-05 16:03:03 +08:00
parent 0235eee42e
commit 6a0babd70e
3 changed files with 6 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import (
"time"
"unicode/utf8"
"github.com/ehlxr/logger/bufferpool"
"github.com/ehlxr/log/bufferpool"
"go.uber.org/zap/buffer"
"go.uber.org/zap/zapcore"

3
go.mod
View File

@ -1,8 +1,9 @@
module github.com/ehlxr/logger
module github.com/ehlxr/log
go 1.13
require (
github.com/ehlxr/logger v0.0.0-20191105075740-0235eee42e0f
github.com/pkg/errors v0.8.1
go.uber.org/zap v1.12.0
gopkg.in/natefinch/lumberjack.v2 v2.0.0

6
log.go
View File

@ -8,10 +8,10 @@ import (
"strings"
"time"
"github.com/ehlxr/logger/encoder"
"github.com/ehlxr/log/encoder"
"github.com/ehlxr/logger/bufferpool"
"github.com/ehlxr/logger/crash"
"github.com/ehlxr/log/bufferpool"
"github.com/ehlxr/log/crash"
"github.com/pkg/errors"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"