def logging_test():
    log = open('./logfile.txt', 'w')
handler = logging.StreamHandler(log)
formatter = logging.Formatter('%(message)s')
handler.setFormatter(formatter)
root_logger = logging.getLogger()
root_logger.addHandler(handler)
root_logger.setLevel(logging.INFO)
byte_string = '\xc3\xb4'
unicode_string = str('\xc3\xb4', 'utf-8')
print('printed unicode object: %s' % unicode_string)
root_logger.info(unicode_string.encode('utf8', 'replace'))
if __name__ == '__main__':
    logging_test()
UTF-8 В ведении журнала Python, как?