log.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. [logger_django_db]
  33. level=DEBUG
  34. handlers=logfile
  35. propogate=False
  36. qualname=django.db.backends
  37. [logger_boto]
  38. level=ERROR
  39. handlers=errorlog
  40. qualname=boto
  41. [handler_stderr]
  42. class=StreamHandler
  43. formatter=default
  44. level=DEBUG
  45. args=(sys.stderr,)
  46. [handler_logfile]
  47. class=handlers.SocketHandler
  48. level=DEBUG
  49. formatter=default
  50. args=('%LOG_DIR%/hue.uds',None,)
  51. [handler_accesslog]
  52. class=handlers.SocketHandler
  53. level=INFO
  54. propagate=True
  55. formatter=access
  56. args=('%LOG_DIR%/hue.uds',None,)
  57. [handler_errorlog]
  58. class=handlers.SocketHandler
  59. level=ERROR
  60. formatter=default
  61. args=('%LOG_DIR%/hue.uds',None,)
  62. [formatter_default]
  63. class=desktop.log.formatter.Formatter
  64. format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
  65. datefmt=%d/%b/%Y %H:%M:%S %z
  66. [formatter_access]
  67. class=desktop.log.formatter.Formatter
  68. format=[%(asctime)s] %(levelname)-8s %(message)s
  69. datefmt=%d/%b/%Y %H:%M:%S %z
  70. ########################################
  71. # A summary of loggers, handlers and formatters
  72. ########################################
  73. [loggers]
  74. keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db,boto
  75. [handlers]
  76. keys=stderr,logfile,accesslog,errorlog
  77. [formatters]
  78. keys=default,access