You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 regels
457 B

  1. from logging import DEBUG
  2. dictLogConfig = {
  3. "version": 1,
  4. "formatters": {
  5. "form_1": {
  6. "format":
  7. '%(asctime)s %(levelname)s: %(message)s'
  8. }
  9. },
  10. "handlers": {
  11. "console": {
  12. "class": "logging.StreamHandler",
  13. "formatter": "form_1",
  14. "level": DEBUG
  15. }
  16. },
  17. "root": {
  18. "handlers": ['console'],
  19. "level": DEBUG
  20. }
  21. }