dev_log.conf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. [logger_boto3]
  42. level=ERROR
  43. handlers=errorlog
  44. qualname=boto3
  45. [logger_botocore]
  46. level=ERROR
  47. handlers=errorlog
  48. qualname=botocore
  49. [handler_stderr]
  50. class=StreamHandler
  51. formatter=default
  52. level=DEBUG
  53. args=(sys.stderr,)
  54. [handler_accesslog]
  55. class=handlers.RotatingFileHandler
  56. level=INFO
  57. propagate=True
  58. formatter=access
  59. args=('%LOG_DIR%/access.log', 'a', 1000000, 3)
  60. [handler_errorlog]
  61. class=handlers.RotatingFileHandler
  62. level=ERROR
  63. formatter=default
  64. args=('%LOG_DIR%/error.log', 'a', 1000000, 3)
  65. [handler_logfile]
  66. class=handlers.RotatingFileHandler
  67. # Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL
  68. level=DEBUG
  69. formatter=default
  70. args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
  71. [formatter_default]
  72. class=desktop.log.formatter.Formatter
  73. format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
  74. datefmt=%d/%b/%Y %H:%M:%S %z
  75. [formatter_access]
  76. class=desktop.log.formatter.Formatter
  77. format=[%(asctime)s] %(levelname)-8s %(message)s
  78. datefmt=%d/%b/%Y %H:%M:%S %z
  79. ########################################
  80. # A summary of loggers, handlers and formatters
  81. ########################################
  82. [loggers]
  83. keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db,boto,boto3,botocore
  84. [handlers]
  85. keys=stderr,logfile,accesslog,errorlog
  86. [formatters]
  87. keys=default,access