Add the snippet that allows all configured loggers to be retrieved in Python and fix a missing import in ascii_only.master
#!/usr/bin/env python | |||||
# -*- coding: utf-8 -*- | |||||
import logging | |||||
all_except_root_loggers = [ | |||||
logging.getLogger(name) for name in logging.root.manager.loggerDict | |||||
] | |||||
all_loggers = [logging.getLogger(), *all_except_root_loggers] |
#!/usr/bin/env python | #!/usr/bin/env python | ||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
import logging | |||||
import re | import re | ||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
ascii_characters = [chr(i) for i in range(32,127)] | |||||
ascii_characters = [chr(i) for i in range(32, 127)] | |||||
ascii_char_rgx = re.compile("{}".format(re.escape(ascii_characters))) | ascii_char_rgx = re.compile("{}".format(re.escape(ascii_characters))) | ||||