base_controller.go 691B

123456789101112131415161718192021222324252627282930
  1. package controllers
  2. import (
  3. "github.com/astaxie/beego"
  4. )
  5. type BaseController struct {
  6. beego.Controller
  7. }
  8. func (this *BaseController) ErrorLog(format string, a ...interface{}) {
  9. //beego.Error(fmt.Sprintf(format, a...))
  10. }
  11. func (this *BaseController) WarnLog(format string, a ...interface{}) {
  12. //beego.Warn(fmt.Sprintf(format, a...))
  13. }
  14. func (this *BaseController) InfoLog(format string, a ...interface{}) {
  15. //beego.Info(fmt.Sprintf(format, a...))
  16. }
  17. func (this *BaseController) DebugLog(format string, a ...interface{}) {
  18. //beego.Debug(fmt.Sprintf(format, a...))
  19. }
  20. func (this *BaseController) TraceLog(format string, a ...interface{}) {
  21. //beego.Trace(fmt.Sprintf(format, a...))
  22. }