errors.go 993 B

1234567891011121314
  1. package nginx_log
  2. import "github.com/uozi-tech/cosy"
  3. var (
  4. e = cosy.NewErrorScope("nginx_log")
  5. ErrLogPathIsNotUnderTheLogDirWhiteList = e.New(50001, "the log path is not under the paths in settings.NginxSettings.LogDirWhiteList")
  6. ErrServerIdxOutOfRange = e.New(50002, "serverIdx out of range")
  7. ErrDirectiveIdxOutOfRange = e.New(50003, "directiveIdx out of range")
  8. ErrLogDirective = e.New(50004, "directive.Params neither access_log nor error_log")
  9. ErrDirectiveParamsIsEmpty = e.New(50005, "directive params is empty")
  10. ErrErrorLogPathIsEmpty = e.New(50006, "settings.NginxLogSettings.ErrorLogPath is empty, refer to https://nginxui.com/guide/config-nginx.html for more information")
  11. ErrAccessLogPathIsEmpty = e.New(50007, "settings.NginxLogSettings.AccessLogPath is empty, refer to https://nginxui.com/guide/config-nginx.html for more information")
  12. )