rename package name & fix bug

This commit is contained in:
jianzhiyao
2022-04-27 23:05:08 +08:00
parent 6fffb3196f
commit 978b7e4a9d
91 changed files with 231 additions and 251 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/elastic/go-elasticsearch/v6"
"github.com/elastic/go-elasticsearch/v6/esapi"
"github.com/astaxie/beego/logs"
"github.com/beego/beego/logs"
)
// NewES return a LoggerInterface
@@ -28,7 +28,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/astaxie/beego/logs/es"
// import _ "github.com/beego/beego/logs/es"
type esLogger struct {
*elasticsearch.Client
DSN string `json:"dsn"`