log.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. [logger_djangosaml2]
  29. level=INFO
  30. handlers=errorlog
  31. qualname=djangosaml2
  32. # The logrotation limit is set at 5MB per file for a total of 5 copies.
  33. # I.e. 25MB for each set of logs.
  34. [handler_accesslog]
  35. class=handlers.RotatingFileHandler
  36. level=DEBUG
  37. propagate=True
  38. formatter=access
  39. args=('%LOG_DIR%/access.log', 'a', 5000000, 5)
  40. # All errors go into error.log
  41. [handler_errorlog]
  42. class=handlers.RotatingFileHandler
  43. level=ERROR
  44. formatter=default
  45. args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
  46. [formatter_default]
  47. class=desktop.log.formatter.Formatter
  48. format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
  49. datefmt=%d/%b/%Y %H:%M:%S %z
  50. [formatter_access]
  51. class=desktop.log.formatter.Formatter
  52. format=[%(asctime)s] %(levelname)-8s %(message)s
  53. datefmt=%d/%b/%Y %H:%M:%S %z
  54. [loggers]
  55. keys=root,access,django_auth_ldap,kazoo_client,djangosaml2
  56. [handlers]
  57. keys=logfile,accesslog,errorlog
  58. [formatters]
  59. keys=default,access