logging.conf 877 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [loggers]
  2. keys=root,api,data,db,spider,validator,download
  3. [logger_root]
  4. level=INFO
  5. handlers=screen
  6. [logger_api]
  7. level=INFO
  8. handlers=screen
  9. qualname=api
  10. propagate=0
  11. [logger_util]
  12. level=INFO
  13. handlers=screen
  14. qualname=util
  15. propagate=0
  16. [logger_download]
  17. level=INFO
  18. handlers=screen
  19. qualname=download
  20. propagate=0
  21. [logger_data]
  22. level=DEBUG
  23. handlers=screen
  24. qualname=data
  25. propagate=0
  26. [logger_db]
  27. level=DEBUG
  28. handlers=screen
  29. qualname=db
  30. propagate=0
  31. [logger_spider]
  32. level=INFO
  33. handlers=screen
  34. qualname=spider
  35. propagate=0
  36. [logger_validator]
  37. level=INFO
  38. handlers=screen
  39. qualname=validator
  40. propagate=0
  41. [handlers]
  42. keys=screen
  43. [handler_screen]
  44. class=logging.StreamHandler
  45. formatter=pretty
  46. level=DEBUG
  47. args=(sys.stderr, )
  48. [formatters]
  49. keys=pretty
  50. [formatter_pretty]
  51. format= %(module)s %(asctime)s %(levelname)s %(lineno)d %(message)s
  52. datefmt= %Y-%m-%d %H:%M:%S
  53. class=logging.Formatter