log.conf 1.8 KB

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