log.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_djangosaml2]
  25. level=INFO
  26. handlers=errorlog
  27. qualname=djangosaml2
  28. [logger_requests_packages_urllib3_connectionpool]
  29. level=DEBUG
  30. handlers=errorlog
  31. qualname=requests.packages.urllib3.connectionpool
  32. [handler_stderr]
  33. class=StreamHandler
  34. formatter=default
  35. level=DEBUG
  36. args=(sys.stderr,)
  37. [handler_accesslog]
  38. class=handlers.RotatingFileHandler
  39. level=INFO
  40. propagate=True
  41. formatter=access
  42. args=('%LOG_DIR%/access.log', 'a', 1000000, 3)
  43. [handler_errorlog]
  44. class=handlers.RotatingFileHandler
  45. level=ERROR
  46. formatter=default
  47. args=('%LOG_DIR%/error.log', 'a', 1000000, 3)
  48. [handler_logfile]
  49. class=handlers.RotatingFileHandler
  50. # Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL
  51. level=DEBUG
  52. formatter=default
  53. args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
  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. ########################################
  63. # A summary of loggers, handlers and formatters
  64. ########################################
  65. [loggers]
  66. keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2
  67. [handlers]
  68. keys=stderr,logfile,accesslog,errorlog
  69. [formatters]
  70. keys=default,access