log.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ##########################################
  2. # To change the log leve, edit the `level' field.
  3. # Choices are: DEBUG, INFO, WARNING, ERROR, CRITICAL
  4. #
  5. # The logrotation limit is set at 5MB per file for a total of 5 copies.
  6. # I.e. 25MB for each set of logs.
  7. ##########################################
  8. [handler_logfile]
  9. level=INFO
  10. class=handlers.RotatingFileHandler
  11. formatter=default
  12. args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 5000000, 5)
  13. ##########################################
  14. # Please do not change the settings below
  15. ##########################################
  16. [logger_root]
  17. handlers=logfile,errorlog
  18. [logger_access]
  19. handlers=accesslog
  20. qualname=access
  21. [logger_django_auth_ldap]
  22. handlers=accesslog
  23. qualname=django_auth_ldap
  24. [logger_kazoo_client]
  25. level=INFO
  26. handlers=errorlog
  27. qualname=kazoo.client
  28. # The logrotation limit is set at 5MB per file for a total of 5 copies.
  29. # I.e. 25MB for each set of logs.
  30. [handler_accesslog]
  31. class=handlers.RotatingFileHandler
  32. level=DEBUG
  33. propagate=True
  34. formatter=access
  35. args=('%LOG_DIR%/access.log', 'a', 5000000, 5)
  36. # All errors go into error.log
  37. [handler_errorlog]
  38. class=handlers.RotatingFileHandler
  39. level=ERROR
  40. formatter=default
  41. args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
  42. [formatter_default]
  43. class=desktop.log.formatter.Formatter
  44. format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
  45. datefmt=%d/%b/%Y %H:%M:%S %z
  46. [formatter_access]
  47. class=desktop.log.formatter.Formatter
  48. format=[%(asctime)s] %(levelname)-8s %(message)s
  49. datefmt=%d/%b/%Y %H:%M:%S %z
  50. [loggers]
  51. keys=root,access,django_auth_ldap,kazoo_client
  52. [handlers]
  53. keys=logfile,accesslog,errorlog
  54. [formatters]
  55. keys=default,access