chore: use core/logs

- depretace all adapter/logs to core/logs
pull/662/head
roberChen 2021-03-26 14:26:19 +08:00
parent 916c9c6c2a
commit 967ef37ce9
16 changed files with 17 additions and 16 deletions

View File

@ -8,7 +8,7 @@ import (
"html/template"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
"github.com/lifei6671/gocaptcha"
"github.com/mindoc-org/mindoc/conf"

View File

@ -13,7 +13,7 @@ import (
"path/filepath"
"github.com/beego/beego/v2/adapter"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"

View File

@ -17,8 +17,8 @@ import (
"net/http"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/graphics"
"github.com/mindoc-org/mindoc/models"

View File

@ -3,8 +3,8 @@ package controllers
import (
"errors"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
)

View File

@ -4,7 +4,7 @@ import (
"math"
"net/url"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -1,8 +1,8 @@
package controllers
import (
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -3,8 +3,8 @@ package controllers
import (
"math"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -14,8 +14,8 @@ import (
"os"
"github.com/beego/beego/v2/adapter"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils"

View File

@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils"

View File

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/graphics"
"github.com/mindoc-org/mindoc/models"

View File

@ -17,7 +17,8 @@ import (
"regexp"
"strconv"
"strings"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/core/logs"
)
var (

View File

@ -8,8 +8,8 @@ import (
"strings"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/utils/filetil"
)

View File

@ -17,8 +17,8 @@ import (
"encoding/json"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/utils"
"github.com/mindoc-org/mindoc/utils/cryptil"

View File

@ -15,8 +15,8 @@ import (
"github.com/PuerkitoBio/goquery"
"github.com/beego/beego/v2/adapter"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/beego/v2/server/web"
"github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/converter"

View File

@ -3,8 +3,8 @@ package models
import (
"errors"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
)

View File

@ -4,8 +4,8 @@ import (
"errors"
"time"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf"
)