log.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. handlers=logfile,errorlog
  14. [logger_access]
  15. handlers=accesslog
  16. qualname=access
  17. [logger_django_auth_ldap]
  18. handlers=accesslog
  19. qualname=django_auth_ldap
  20. [logger_kazoo_client]
  21. level=INFO
  22. handlers=errorlog
  23. qualname=kazoo.client
  24. [logger_requests_packages_urllib3_connectionpool]
  25. level=DEBUG
  26. handlers=errorlog
  27. qualname=requests.packages.urllib3.connectionpool
  28. [handler_stderr]
  29. class=StreamHandler
  30. formatter=default
  31. level=DEBUG
  32. args=(sys.stderr,)
  33. [handler_accesslog]
  34. class=handlers.RotatingFileHandler
  35. level=INFO
  36. propagate=True
  37. formatter=access
  38. args=('%LOG_DIR%/access.log', 'a', 1000000, 3)
  39. [handler_errorlog]
  40. class=handlers.RotatingFileHandler
  41. level=ERROR
  42. formatter=default
  43. args=('%LOG_DIR%/error.log', 'a', 1000000, 3)
  44. [handler_logfile]
  45. class=handlers.RotatingFileHandler
  46. # Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL
  47. level=DEBUG
  48. formatter=default
  49. args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
  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. ########################################
  59. # A summary of loggers, handlers and formatters
  60. ########################################
  61. [loggers]
  62. keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool
  63. [handlers]
  64. keys=stderr,logfile,accesslog,errorlog
  65. [formatters]
  66. keys=default,access