tcp server 用于给andriod 客户端定时发送消息
liuxiaolong
2019-05-31 c7cfafb13d36512f3e73457e94c26e31dedf5f7a
log/log.go
@@ -13,6 +13,7 @@
func init() {
   Log = NewLogger()
   Log.SetLevel(logrus.ErrorLevel)
}
func NewLogger() *logrus.Logger {
@@ -20,7 +21,7 @@
      return Log
   }
   infopath := "log/log_record/info.log"
   infopath := "logs/info.log"
   infowriter, _ := rotatelogs.New(
      infopath+".%Y%m%d%H%M",
      rotatelogs.WithLinkName(infopath),
@@ -28,7 +29,7 @@
      rotatelogs.WithRotationTime(24*time.Hour),
   )
   errorpath := "log/log_record/error.log"
   errorpath := "logs/error.log"
   errorwriter, _ := rotatelogs.New(
      errorpath+".%Y%m%d%H%M",
      rotatelogs.WithLinkName(errorpath),