gunicorn_log.conf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ########################################
  2. # Definition for the different objects
  3. # - FOR DEVELOPMENT ONLY -
  4. #
  5. # Directories where log files are kept must already exist.
  6. # That's why we pick /tmp.
  7. #
  8. # The loggers are configured to write to the log files ONLY.
  9. # Developers may set the DESKTOP_DEBUG environment variable to
  10. # enable stderr logging output.
  11. ########################################
  12. [logger_root]
  13. level=NOTSET
  14. handlers=logfile,errorlog
  15. [logger_access]
  16. level=NOTSET
  17. handlers=accesslog
  18. qualname=access
  19. [logger_django_auth_ldap]
  20. level=NOTSET
  21. handlers=accesslog
  22. qualname=django_auth_ldap
  23. [logger_kazoo_client]
  24. level=NOTSET
  25. handlers=errorlog
  26. qualname=kazoo.client
  27. [logger_djangosaml2]
  28. level=NOTSET
  29. handlers=errorlog
  30. qualname=djangosaml2
  31. [logger_requests_packages_urllib3_connectionpool]
  32. level=NOTSET
  33. handlers=errorlog
  34. qualname=requests.packages.urllib3.connectionpool
  35. [logger_django_db]
  36. level=NOTSET
  37. handlers=errorlog
  38. qualname=django.db.backends
  39. [logger_boto]
  40. level=NOTSET
  41. handlers=errorlog
  42. qualname=boto
  43. [handler_stderr]
  44. class=StreamHandler
  45. formatter=default
  46. level=NOTSET
  47. args=(sys.stderr,)
  48. [handler_accesslog]
  49. class=handlers.RotatingFileHandler
  50. level=NOTSET
  51. propagate=True
  52. formatter=access
  53. args=('%LOG_DIR%/access.log', 'a', 5000000, 5)
  54. [handler_errorlog]
  55. class=handlers.RotatingFileHandler
  56. level=NOTSET
  57. formatter=default
  58. args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
  59. [handler_logfile]
  60. class=handlers.RotatingFileHandler
  61. # Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL
  62. level=NOTSET
  63. formatter=default
  64. args=('%LOG_DIR%/rungunicornserver.log', 'a', 5000000, 5)
  65. [formatter_default]
  66. class=logging.Formatter
  67. format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
  68. datefmt=%d/%b/%Y %H:%M:%S %z
  69. [formatter_access]
  70. class=logging.Formatter
  71. format=[%(asctime)s] %(levelname)-8s %(message)s
  72. datefmt=%d/%b/%Y %H:%M:%S %z
  73. ########################################
  74. # A summary of loggers, handlers and formatters
  75. ########################################
  76. [loggers]
  77. keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db,boto
  78. [handlers]
  79. keys=stderr,logfile,accesslog,errorlog
  80. [formatters]
  81. keys=default,access