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" "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/beego/beego/v2/server/web"
"github.com/lifei6671/gocaptcha" "github.com/lifei6671/gocaptcha"
"github.com/mindoc-org/mindoc/conf" "github.com/mindoc-org/mindoc/conf"

View File

@ -13,7 +13,7 @@ import (
"path/filepath" "path/filepath"
"github.com/beego/beego/v2/adapter" "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/beego/beego/v2/server/web"
"github.com/mindoc-org/mindoc/conf" "github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"

View File

@ -17,8 +17,8 @@ import (
"net/http" "net/http"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/graphics" "github.com/mindoc-org/mindoc/graphics"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"

View File

@ -3,8 +3,8 @@ package controllers
import ( import (
"errors" "errors"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
) )

View File

@ -4,7 +4,7 @@ import (
"math" "math"
"net/url" "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/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination" "github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -1,8 +1,8 @@
package controllers package controllers
import ( import (
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination" "github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -3,8 +3,8 @@ package controllers
import ( import (
"math" "math"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils/pagination" "github.com/mindoc-org/mindoc/utils/pagination"

View File

@ -14,8 +14,8 @@ import (
"os" "os"
"github.com/beego/beego/v2/adapter" "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/client/orm"
"github.com/beego/beego/v2/core/logs"
"github.com/mindoc-org/mindoc/conf" "github.com/mindoc-org/mindoc/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils" "github.com/mindoc-org/mindoc/utils"

View File

@ -4,7 +4,7 @@ import (
"strconv" "strconv"
"strings" "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/conf"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"
"github.com/mindoc-org/mindoc/utils" "github.com/mindoc-org/mindoc/utils"

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "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/conf"
"github.com/mindoc-org/mindoc/graphics" "github.com/mindoc-org/mindoc/graphics"
"github.com/mindoc-org/mindoc/models" "github.com/mindoc-org/mindoc/models"

View File

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

View File

@ -8,8 +8,8 @@ import (
"strings" "strings"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/utils/filetil" "github.com/mindoc-org/mindoc/utils/filetil"
) )

View File

@ -17,8 +17,8 @@ import (
"encoding/json" "encoding/json"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
"github.com/mindoc-org/mindoc/utils" "github.com/mindoc-org/mindoc/utils"
"github.com/mindoc-org/mindoc/utils/cryptil" "github.com/mindoc-org/mindoc/utils/cryptil"

View File

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

View File

@ -3,8 +3,8 @@ package models
import ( import (
"errors" "errors"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
) )

View File

@ -4,8 +4,8 @@ import (
"errors" "errors"
"time" "time"
"github.com/beego/beego/v2/adapter/logs"
"github.com/beego/beego/v2/client/orm" "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/conf"
) )