log.conf 2.0 KB

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