test/framework.py: change logger to return 'e' format.