bee_logging.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. version: 1
  2. disable_existing_loggers: False
  3. formatters:
  4. formatter_console:
  5. style: "{"
  6. format: "({filename}:{lineno}) {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. handler_console:
  14. class: logging.StreamHandler
  15. level: DEBUG
  16. formatter: formatter_console
  17. stream: ext://sys.stdout
  18. fh_chat:
  19. class: logging.FileHandler
  20. level: DEBUG
  21. formatter: formatter_file
  22. filename: logs/chat.log
  23. fh_network:
  24. class: logging.FileHandler
  25. level: DEBUG
  26. formatter: formatter_file
  27. filename: logs/network.log
  28. fh_log:
  29. class: logging.FileHandler
  30. level: DEBUG
  31. formatter: formatter_file
  32. filename: logs/client.log
  33. fh_lib:
  34. class: logging.FileHandler
  35. level: DEBUG
  36. formatter: formatter_file
  37. filename: logs/client.log
  38. fh_client:
  39. class: logging.FileHandler
  40. level: DEBUG
  41. formatter: formatter_file
  42. filename: logs/client.log
  43. #
  44. loggers:
  45. __main__:
  46. level: DEBUG
  47. handlers: [handler_console]
  48. beewatch:
  49. level: DEBUG
  50. handlers: [handler_console]
  51. digilib:
  52. level: DEBUG
  53. handlers: [handler_console]
  54. digilib.gui:
  55. level: DEBUG
  56. handlers: [handler_console]
  57. digilib.network:
  58. level: DEBUG
  59. handlers: [handler_console]
  60. propagate: no
  61. digilib.network.chat:
  62. level: INFO
  63. handlers: [handler_console]
  64. propagate: no
  65. digilib.network.client:
  66. level: DEBUG
  67. handlers: [handler_console]
  68. propagate: no
  69. root:
  70. level: DEBUG
  71. handlers: [handler_console]
  72. # [loggers]
  73. # keys=BeeGui
  74. #
  75. # [handlers]
  76. # keys=bg_console_handler
  77. #
  78. # [formatters]
  79. # keys=bg_simple_formatter
  80. #
  81. # [logger_BeeGui]
  82. # level=DEBUG
  83. # handlers=bg_console_handler
  84. # qualname=__digilib.gui__
  85. # propagate=1
  86. #
  87. # [handler_bg_console_handler]
  88. # class=StreamHandler
  89. # level=DEBUG
  90. # formatter=bg_simple_formatter
  91. # args=(sys.stdout,)
  92. #
  93. # [formatter_bg_simple_formatter]
  94. # style=$
  95. # format=(${name}:${lineno}): ${module}-${levelname} **:${message}
  96. # #format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
  97. # datefmt=
  98. #