diff --git a/README.md b/README.md index c3f4080..4e312e9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # logger -1. [x] 包名: `github.com/fuyibing/log`. +1. [x] 包名: `github.com/fuyibing/log/v2`. 1. [x] 版本: `v2` > 本包在导入后, 扫描 `tmp/log.yaml` 或 `config/log.yaml` 并初始化, diff --git a/adapters/file_adapter.go b/adapters/file_adapter.go index e65a326..5b80937 100644 --- a/adapters/file_adapter.go +++ b/adapters/file_adapter.go @@ -6,7 +6,7 @@ package adapters import ( "sync" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) // 文件配置. diff --git a/adapters/redis_adapter.go b/adapters/redis_adapter.go index c1a3239..2dc0d3f 100644 --- a/adapters/redis_adapter.go +++ b/adapters/redis_adapter.go @@ -13,7 +13,7 @@ import ( "github.com/gomodule/redigo/redis" "gopkg.in/yaml.v3" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) type redisConfig struct { diff --git a/adapters/term_adapter.go b/adapters/term_adapter.go index 6a840f9..8fec940 100644 --- a/adapters/term_adapter.go +++ b/adapters/term_adapter.go @@ -6,7 +6,7 @@ package adapters import ( "fmt" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) type termAdapter struct { diff --git a/client.go b/client.go index c36dc68..9c24a62 100644 --- a/client.go +++ b/client.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) // 日志客户端. diff --git a/config.go b/config.go index 449d8d8..1130188 100644 --- a/config.go +++ b/config.go @@ -13,8 +13,8 @@ import ( "gopkg.in/yaml.v3" - "github.com/fuyibing/log/adapters" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/adapters" + "github.com/fuyibing/log/v2/interfaces" ) // 日志配置. diff --git a/context.go b/context.go index b001cb9..4d3ff56 100644 --- a/context.go +++ b/context.go @@ -7,7 +7,7 @@ import ( "context" "net/http" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) // 绑定Tracing. diff --git a/go.mod b/go.mod index 072b67e..949c3c1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/fuyibing/log +module github.com/fuyibing/log/v2 -go 1.14 +go 1.13 require ( github.com/gomodule/redigo v1.8.4 diff --git a/init.go b/init.go index 68ea46f..98722f5 100644 --- a/init.go +++ b/init.go @@ -6,7 +6,7 @@ package log import ( "sync" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) var ( diff --git a/line.go b/line.go index 368d4aa..6138bcd 100644 --- a/line.go +++ b/line.go @@ -10,7 +10,7 @@ import ( "strconv" "time" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) var ( diff --git a/plugins/xorm.go b/plugins/xorm.go index 38f7748..97d09a7 100644 --- a/plugins/xorm.go +++ b/plugins/xorm.go @@ -8,7 +8,7 @@ import ( xorm "xorm.io/xorm/log" - "github.com/fuyibing/log" + "github.com/fuyibing/log/v2" ) type XOrm struct{} diff --git a/tests/config_test.go b/tests/config_test.go index 426aae0..316dbe4 100644 --- a/tests/config_test.go +++ b/tests/config_test.go @@ -6,7 +6,7 @@ package tests import ( "testing" - "github.com/fuyibing/log" + "github.com/fuyibing/log/v2" ) func TestConfig(t *testing.T) { diff --git a/tests/func_test.go b/tests/func_test.go index c738c89..ffcfa46 100644 --- a/tests/func_test.go +++ b/tests/func_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/fuyibing/log" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2" + "github.com/fuyibing/log/v2/interfaces" ) func TestFunc(t *testing.T) { diff --git a/tests/handler_test.go b/tests/handler_test.go index b5ef29d..d2b023c 100644 --- a/tests/handler_test.go +++ b/tests/handler_test.go @@ -6,8 +6,8 @@ package tests import ( "testing" - "github.com/fuyibing/log" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2" + "github.com/fuyibing/log/v2/interfaces" ) func TestHandler(t *testing.T) { diff --git a/tests/xorm_test.go b/tests/xorm_test.go index 0614fa3..6782513 100644 --- a/tests/xorm_test.go +++ b/tests/xorm_test.go @@ -6,7 +6,7 @@ package tests import ( "testing" - "github.com/fuyibing/log/plugins" + "github.com/fuyibing/log/v2/plugins" ) func TestPluginXorm(t *testing.T) { diff --git a/tracing.go b/tracing.go index c41b444..7960c0a 100644 --- a/tracing.go +++ b/tracing.go @@ -13,7 +13,7 @@ import ( "github.com/google/uuid" - "github.com/fuyibing/log/interfaces" + "github.com/fuyibing/log/v2/interfaces" ) // 请求链结构体.