It's a type of Planche
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import logging
  4. all_except_root_loggers = [
  5. logging.getLogger(name) for name in logging.root.manager.loggerDict
  6. ]
  7. all_loggers = [logging.getLogger(), *all_except_root_loggers]