log.conf 1.8 KB

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