rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/elastic/go-elasticsearch/v6"
"github.com/elastic/go-elasticsearch/v6/esapi"
"github.com/beego/beego/core/logs"
"github.com/beego/beego/v2/core/logs"
)
// NewES returns a LoggerInterface
@@ -29,7 +29,7 @@ func NewES() logs.Logger {
// please import this package
// usually means that you can import this package in your main package
// for example, anonymous:
// import _ "github.com/beego/beego/logs/es"
// import _ "github.com/beego/beego/v2/logs/es"
type esLogger struct {
*elasticsearch.Client
DSN string `json:"dsn"`