diff --git a/common/svlog/log.go b/common/svlog/log.go index d879916..4c34d40 100644 --- a/common/svlog/log.go +++ b/common/svlog/log.go @@ -18,4 +18,5 @@ func Init() { } fmt.Println(svconst.AppName + " svlog init success") + } diff --git a/common/svmysql/index.go b/common/svmysql/index.go new file mode 100644 index 0000000..0c6b64e --- /dev/null +++ b/common/svmysql/index.go @@ -0,0 +1 @@ +package svmysql diff --git a/main.go b/main.go index 4d926f3..fb81a6c 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,7 @@ func Init() { svconst.AppName = beego.AppConfig.String("appname") svlog.Init() + svlog.InitAliLog(svconst.AppName) if !svredis.Init() { -- libgit2 0.21.0