logging.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. version: 1
  2. disable_existing_loggers: False
  3. formatters:
  4. formatter_console:
  5. style: "{"
  6. format: "({filename}:{lineno:<3}) {name} {levelname} - {message}"
  7. # datefmt: "%Y-%m-%d %H:%M:%S"
  8. formatter_file:
  9. style: "{"
  10. format: "{asctime} ({filename}:{lineno}) {name} {levelname} - {message}"
  11. datefmt: "%Y-%m-%d %H:%M:%S"
  12. handlers:
  13. chandler:
  14. class: logging.StreamHandler
  15. level: DEBUG
  16. formatter: formatter_console
  17. stream: ext://sys.stdout
  18. fh_server_chat:
  19. class: logging.FileHandler
  20. level: DEBUG
  21. formatter: formatter_file
  22. filename: logs/chat_server.log
  23. fh_chat:
  24. class: logging.FileHandler
  25. level: DEBUG
  26. formatter: formatter_file
  27. filename: logs/chat_client.log
  28. loggers:
  29. __main__:
  30. level: DEBUG
  31. handlers: [chandler]
  32. propagate: no
  33. beewatch:
  34. level: DEBUG
  35. handlers: [chandler]
  36. propagate: no
  37. digilib:
  38. level: DEBUG
  39. handlers: [chandler]
  40. propagate: no
  41. digilib.network:
  42. handlers: [chandler]
  43. propagate: no
  44. digilib.network.server.chat:
  45. handlers: [chandler]
  46. propagate: no
  47. # handlers: [chandler,fh_client_chat]
  48. digilib.network.client.chat:
  49. handlers: [chandler]
  50. propagate: no
  51. # handlers: [chandler,fh_client_chat]
  52. #