log.conf 1.5 KB

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